/
githubmirror
/
pdf.js
Обзор
Документация
Войти
/
githubmirror
/
pdf.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/components/simple-viewer.html
66 строк
2 KB
Jonas Jenwald
Move the `NetworkStream` choice from `src/display/api.js` and into a separate file
24 мар 2026, 19:08
24 мар 2026, 19:08
a0102ab
Код
Авторство
О чём код?
<!doctype html> <!-- Copyright 2026 Mozilla Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <html dir="ltr" mozdisallowselectionprint lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title>PDF.js — Simple viewer</title> <style> body { background-color: #808080; margin: 0; padding: 0; } #viewerContainer { overflow: auto; position: absolute; width: 100%; height: 100%; } </style> <link rel="resource" type="application/l10n" href="../../web/locale/locale.json" /> <link rel="stylesheet" href="../../web/pdf_viewer.css" /> <script type="importmap"> { "imports": { "pdfjs/": "../../src/", "pdfjs-lib": "../../src/pdf.js", "display-binary_data_factory": "../../src/display/binary_data_factory.js", "display-network_stream": "../../src/display/network_stream.js", "display-node_utils": "../../src/display/stubs.js", "fluent-bundle": "../../node_modules/@fluent/bundle/esm/index.js", "fluent-dom": "../../node_modules/@fluent/dom/esm/index.js", "cached-iterable": "../../node_modules/cached-iterable/src/index.mjs", "web-null_l10n": "../../web/genericl10n.js" } } </script> <script src="simple-viewer.js" type="module"></script> </head> <body tabindex="1"> <div id="viewerContainer"> <div id="viewer" class="pdfViewer"></div> </div> </body> </html>