mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 23:04:02 +02:00
This code already isn't used (or even bundled) in the Firefox PDF Viewer, and it also slightly reduces the number of import maps that need to be maintained.
67 lines
2.0 KiB
HTML
67 lines
2.0 KiB
HTML
<!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>
|