pdf.js
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>BizMatch QC</title>
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
<script type="module">
|
||||
import * as pdfjsLib from "/pdfjs/pdf.min.mjs";
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "/pdfjs/pdf.worker.min.mjs";
|
||||
globalThis.pdfjsLib = pdfjsLib;
|
||||
</script>
|
||||
<script type="module" src="/pdf_viewer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -22,7 +28,7 @@
|
||||
<div id="fields"></div>
|
||||
</section>
|
||||
<section class="viewer">
|
||||
<iframe id="pdf" title="PDF document"></iframe>
|
||||
<div id="pdfViewer"></div>
|
||||
<div id="pdfMessage">Select a document</div>
|
||||
</section>
|
||||
</main>
|
||||
@@ -30,15 +36,15 @@
|
||||
<form method="dialog">
|
||||
<h2>Settings</h2>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" id="useAnonData">
|
||||
Use anonymized sample data
|
||||
</label>
|
||||
<input type="checkbox" id="useAnonData">
|
||||
Use anonymized sample data
|
||||
</label>
|
||||
<label>buyers_vision.json
|
||||
<input id="jsonPath" autocomplete="off">
|
||||
</label>
|
||||
<input id="jsonPath" autocomplete="off">
|
||||
</label>
|
||||
<label>PDF base directory
|
||||
<input id="pdfBase" autocomplete="off">
|
||||
</label>
|
||||
<input id="pdfBase" autocomplete="off">
|
||||
</label>
|
||||
<div id="settingsError" class="dialog-error" hidden></div>
|
||||
<div class="actions">
|
||||
<button value="cancel">Cancel</button>
|
||||
|
||||
Reference in New Issue
Block a user