test_pdfjs_textlayer.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright 2014 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. -->
  14. <html dir="ltr" mozdisallowselectionprint>
  15. <head>
  16. <meta charset="utf-8">
  17. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  18. <meta name="google" content="notranslate">
  19. <title>PDF.js page viewer using built components</title>
  20. <style>
  21. body {
  22. background-color: #808080;
  23. margin: 0;
  24. padding: 0;
  25. }
  26. </style>
  27. <link rel="stylesheet" href="{{ url_for('static', filename='css/viewer.css') }}" />
  28. <script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.2.2/web/pdf_viewer.js"></script>
  29. <script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.2.2/build/pdf.js"></script>
  30. </head>
  31. <body tabindex="1">
  32. <div id="pageContainer" class="pdfViewer singlePageView"></div>
  33. <script src="pageviewer.js"></script>
  34. </body>
  35. </html>