viewer-geckoview.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright 2012 Mozilla Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. Adobe CMap resources are covered by their own copyright but the same license:
  14. Copyright 1990-2015 Adobe Systems Incorporated.
  15. See https://github.com/adobe-type-tools/cmap-resources
  16. -->
  17. <html dir="ltr" mozdisallowselectionprint>
  18. <head>
  19. <meta charset="utf-8">
  20. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  21. <title>PDF.js viewer</title>
  22. <!--#if MOZCENTRAL-->
  23. <!--#include viewer-snippet-firefox-extension.html-->
  24. <!--#endif-->
  25. <!--#if MOZCENTRAL-->
  26. <!--<link rel="stylesheet" href="viewer.css">-->
  27. <!--#else-->
  28. <link rel="stylesheet" href="viewer-geckoview.css">
  29. <!--#endif-->
  30. <!--#if !MOZCENTRAL-->
  31. <link rel="resource" type="application/l10n" href="locale/locale.properties">
  32. <!--#endif-->
  33. <!--#if !MOZCENTRAL-->
  34. <script defer src="../node_modules/es-module-shims/dist/es-module-shims.js"></script>
  35. <script type="importmap-shim">
  36. {
  37. "imports": {
  38. "pdfjs/": "../src/",
  39. "pdfjs-lib": "../src/pdf.js",
  40. "pdfjs-web/": "./",
  41. "pdfjs-fitCurve": "../build/dev-fitCurve/fit_curve.js"
  42. }
  43. }
  44. </script>
  45. <script src="viewer-geckoview.js" type="module-shim"></script>
  46. <!--#else-->
  47. <!--<script src="viewer.js"></script>-->
  48. <!--#endif-->
  49. </head>
  50. <body tabindex="1">
  51. <div id="outerContainer">
  52. <div id="mainContainer">
  53. <div id="viewerContainer" tabindex="0">
  54. <div id="viewer" class="pdfViewer"></div>
  55. </div>
  56. </div> <!-- mainContainer -->
  57. <div id="dialogContainer">
  58. <dialog id="passwordDialog">
  59. <div class="row">
  60. <label for="password" id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</label>
  61. </div>
  62. <div class="row">
  63. <input type="password" id="password" class="toolbarField">
  64. </div>
  65. <div class="buttonRow">
  66. <button id="passwordCancel" class="dialogButton"><span data-l10n-id="password_cancel">Cancel</span></button>
  67. <button id="passwordSubmit" class="dialogButton"><span data-l10n-id="password_ok">OK</span></button>
  68. </div>
  69. </dialog>
  70. </div> <!-- dialogContainer -->
  71. </div> <!-- outerContainer -->
  72. <div id="printContainer"></div>
  73. <!--#if !MOZCENTRAL-->
  74. <input type="file" id="fileInput" class="hidden">
  75. <!--#endif-->
  76. </body>
  77. </html>