|
@@ -24,16 +24,48 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
<head>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
|
+<!--#if GENERIC || CHROME-->
|
|
<meta name="google" content="notranslate">
|
|
<meta name="google" content="notranslate">
|
|
|
|
+<!--#endif-->
|
|
<title>PDF.js viewer</title>
|
|
<title>PDF.js viewer</title>
|
|
|
|
|
|
- <link rel="stylesheet" href="viewer.css">
|
|
|
|
-
|
|
|
|
-<!-- This snippet is used in production (included from viewer.html) -->
|
|
|
|
-<link rel="resource" type="application/l10n" href="locale/locale.properties">
|
|
|
|
-<script src="../build/pdf.js"></script>
|
|
|
|
|
|
+<!--#if MOZCENTRAL-->
|
|
|
|
+<!--#include viewer-snippet-firefox-extension.html-->
|
|
|
|
+<!--#endif-->
|
|
|
|
+<!--#if CHROME-->
|
|
|
|
+<!--#include viewer-snippet-chrome-extension.html-->
|
|
|
|
+<!--#endif-->
|
|
|
|
|
|
- <script src="viewer.js"></script>
|
|
|
|
|
|
+ <link rel="stylesheet" href="viewer.css">
|
|
|
|
+<!--#if !PRODUCTION-->
|
|
|
|
+ <link rel="resource" type="application/l10n" href="locale/locale.properties">
|
|
|
|
+<!--#endif-->
|
|
|
|
+
|
|
|
|
+<!--#if !PRODUCTION-->
|
|
|
|
+ <script defer src="../node_modules/es-module-shims/dist/es-module-shims.js"></script>
|
|
|
|
+ <script type="importmap-shim">
|
|
|
|
+ {
|
|
|
|
+ "imports": {
|
|
|
|
+ "pdfjs/": "../src/",
|
|
|
|
+ "pdfjs-lib": "../src/pdf.js",
|
|
|
|
+ "pdfjs-web/": "./",
|
|
|
|
+ "pdfjs-fitCurve": "../build/dev-fitCurve/fit_curve.js"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+
|
|
|
|
+ <script src="viewer.js" type="module-shim"></script>
|
|
|
|
+<!--#endif-->
|
|
|
|
+
|
|
|
|
+<!--#if (GENERIC && !MINIFIED) -->
|
|
|
|
+<!--#include viewer-snippet.html-->
|
|
|
|
+<!--#endif-->
|
|
|
|
+
|
|
|
|
+<!--#if !MINIFIED -->
|
|
|
|
+<!--<script src="viewer.js"></script>-->
|
|
|
|
+<!--#else-->
|
|
|
|
+<!--#include viewer-snippet-minified.html-->
|
|
|
|
+<!--#endif-->
|
|
|
|
|
|
</head>
|
|
</head>
|
|
|
|
|
|
@@ -148,9 +180,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
|
|
|
|
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
|
|
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
|
|
<div id="secondaryToolbarButtonContainer">
|
|
<div id="secondaryToolbarButtonContainer">
|
|
|
|
+<!--#if GENERIC-->
|
|
<button id="secondaryOpenFile" class="secondaryToolbarButton visibleLargeView" title="Open File" tabindex="51" data-l10n-id="open_file">
|
|
<button id="secondaryOpenFile" class="secondaryToolbarButton visibleLargeView" title="Open File" tabindex="51" data-l10n-id="open_file">
|
|
<span data-l10n-id="open_file_label">Open</span>
|
|
<span data-l10n-id="open_file_label">Open</span>
|
|
</button>
|
|
</button>
|
|
|
|
+<!--#endif-->
|
|
|
|
|
|
<button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="52" data-l10n-id="print">
|
|
<button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="52" data-l10n-id="print">
|
|
<span data-l10n-id="print_label">Print</span>
|
|
<span data-l10n-id="print_label">Print</span>
|
|
@@ -160,7 +194,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
<span data-l10n-id="save_label">Save</span>
|
|
<span data-l10n-id="save_label">Save</span>
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
+<!--#if GENERIC-->
|
|
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
|
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
|
|
|
+<!--#else-->
|
|
|
|
+<!-- <div class="horizontalToolbarSeparator visibleMediumView"></div>-->
|
|
|
|
+<!--#endif-->
|
|
|
|
|
|
<button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
|
<button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
|
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
|
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
|
@@ -262,9 +300,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
<span id="numPages" class="toolbarLabel"></span>
|
|
<span id="numPages" class="toolbarLabel"></span>
|
|
</div>
|
|
</div>
|
|
<div id="toolbarViewerRight">
|
|
<div id="toolbarViewerRight">
|
|
|
|
+<!--#if GENERIC-->
|
|
<button id="openFile" class="toolbarButton hiddenLargeView" title="Open File" tabindex="31" data-l10n-id="open_file">
|
|
<button id="openFile" class="toolbarButton hiddenLargeView" title="Open File" tabindex="31" data-l10n-id="open_file">
|
|
<span data-l10n-id="open_file_label">Open</span>
|
|
<span data-l10n-id="open_file_label">Open</span>
|
|
</button>
|
|
</button>
|
|
|
|
+<!--#endif-->
|
|
|
|
|
|
<button id="print" class="toolbarButton hiddenMediumView" title="Print" tabindex="32" data-l10n-id="print">
|
|
<button id="print" class="toolbarButton hiddenMediumView" title="Print" tabindex="32" data-l10n-id="print">
|
|
<span data-l10n-id="print_label">Print</span>
|
|
<span data-l10n-id="print_label">Print</span>
|
|
@@ -411,6 +451,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
<button id="documentPropertiesClose" class="dialogButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
|
<button id="documentPropertiesClose" class="dialogButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
|
</div>
|
|
</div>
|
|
</dialog>
|
|
</dialog>
|
|
|
|
+<!--#if !MOZCENTRAL-->
|
|
<dialog id="printServiceDialog" style="min-width: 200px;">
|
|
<dialog id="printServiceDialog" style="min-width: 200px;">
|
|
<div class="row">
|
|
<div class="row">
|
|
<span data-l10n-id="print_progress_message">Preparing document for printing…</span>
|
|
<span data-l10n-id="print_progress_message">Preparing document for printing…</span>
|
|
@@ -423,11 +464,17 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|
<button id="printCancel" class="dialogButton"><span data-l10n-id="print_progress_close">Cancel</span></button>
|
|
<button id="printCancel" class="dialogButton"><span data-l10n-id="print_progress_close">Cancel</span></button>
|
|
</div>
|
|
</div>
|
|
</dialog>
|
|
</dialog>
|
|
|
|
+<!--#endif-->
|
|
|
|
+<!--#if CHROME-->
|
|
|
|
+<!--#include viewer-snippet-chrome-overlays.html-->
|
|
|
|
+<!--#endif-->
|
|
</div> <!-- dialogContainer -->
|
|
</div> <!-- dialogContainer -->
|
|
|
|
|
|
</div> <!-- outerContainer -->
|
|
</div> <!-- outerContainer -->
|
|
<div id="printContainer"></div>
|
|
<div id="printContainer"></div>
|
|
|
|
|
|
|
|
+<!--#if GENERIC-->
|
|
<input type="file" id="fileInput" class="hidden">
|
|
<input type="file" id="fileInput" class="hidden">
|
|
|
|
+<!--#endif-->
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|