Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <input type="file" id="file" multiple accept="application/pdf,image/png">
- <hr />
- <div class="list-files"></div>
- <script type="text/javascript">
- document.getElementById("file").addEventListener('change', async e => {
- await store.fs.uploadFiles(e.target.files);
- e.target.value = '';
- });
- </script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf-lib/1.17.1/pdf-lib.min.js"
- integrity="sha512-z8IYLHO8bTgFqj+yrPyIJnzBDf7DDhWwiEsk4sY+Oe6J2M+WQequeGS7qioI5vT6rXgVRb4K1UVQC5ER7MKzKQ=="
- crossorigin="anonymous" referrerpolicy="no-referrer"></script>
- <script src="/js/wasm/WasmFs.js"></script>
- <script type="text/javascript" src="/js/wasm/tiff.min.js"></script>
- <script type="text/javascript" src="/js/wasm/canvastotiff.js"></script>
- <script type="text/javascript" src="/js/wasm/pdfjs/pdf.js"></script>
- <script type="text/javascript">pdfjsLib.GlobalWorkerOptions.workerSrc = '/js/wasm/pdfjs/pdf.worker.js';</script>
- <script type="text/javascript" src="/wasm/js/app.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement