platform/wasm/examples/simple-viewer/README.md
raw| 1 | # Simple Viewer |
| 2 | |
| 3 | This project contains a simple demo of a PDF viewer using the MuPDF.js Library. |
| 4 | |
| 5 | This viewer uses a Worker background thread to do the heavy lifting, and |
| 6 | inserts rendered images and text in the DOM as pages scroll into view. |
| 7 | |
| 8 | To start the HTTP server and open your browser to the viewer: |
| 9 | |
| 10 | npx http-server ../.. -b -o examples/simple-viewer |
| 11 | |
| 12 | Use the File menu to open a PDF file. |