fix error

This commit is contained in:
邱博亞 2022-03-05 21:47:27 +08:00
parent 0d5c4174ca
commit 5a8859e6f1
3 changed files with 5 additions and 7 deletions

View File

@ -4710,7 +4710,7 @@ var defaultOptions = {
kind: OptionKind.VIEWER kind: OptionKind.VIEWER
}; };
defaultOptions.printResolution = { defaultOptions.printResolution = {
value: 150, value: 600,
kind: OptionKind.VIEWER kind: OptionKind.VIEWER
}; };
} }

View File

@ -28,13 +28,11 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title> <title>PDF.js viewer</title>
<%= stylesheet_link_tag "archive/download_file.css" %>
<link rel="stylesheet" href="/assets/archive/pdf/viewer.css">
<!-- This snippet is used in production (included from viewer.html) --> <!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties"> <link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
<script src="/assets/archive/pdf/pdf.js"></script> <%= javascript_include_tag "archive/pdf/pdf.js" %>
</head> </head>
<body tabindex="1" class="loadingInProgress" data-url="<%=@url%>"> <body tabindex="1" class="loadingInProgress" data-url="<%=@url%>">
@ -388,6 +386,6 @@ See https://github.com/adobe-type-tools/cmap-resources
</div> <!-- outerContainer --> </div> <!-- outerContainer -->
<div id="printContainer"></div> <div id="printContainer"></div>
<script type="text/javascript" src="/assets/archive/pdf/viewer.js"></script> <%= javascript_include_tag "archive/pdf/viewer.js" %>
</body> </body>
</html> </html>

View File

@ -5,7 +5,7 @@
<head> <head>
<meta name="viewport" content="width=device-width, minimum-scale=0.1"> <meta name="viewport" content="width=device-width, minimum-scale=0.1">
<title><%=@filename%></title> <title><%=@filename%></title>
<link href="/assets/archive/download_file.css" rel="stylesheet" media="all"> <%= stylesheet_link_tag "archive/download_file.css" %>
</head> </head>
<body> <body>
<h1 style="display: none;"><%=@filename%></h1> <h1 style="display: none;"><%=@filename%></h1>