Commit Graph

5 Commits

Author SHA1 Message Date
octocorvus
4ccb01762d bugfix: add missing CSS for hiddenCanvasElement
This is required by the new pdf.js version.
2024-05-07 15:27:09 -04:00
octocorvus
be4e1e15a2 update worker import for PDF.js v4 2024-02-05 01:03:54 -05:00
octocorvus
6754a1a666 split css into multiple files 2023-09-16 04:20:38 -04:00
octocorvus
c0148fc483 viewer: replace window with globalThis 2023-09-16 04:20:38 -04:00
octocorvus
627a566c2f viewer: use esbuild to bundle pdf viewer and worker
This improves maintainability:
1. no need to hardcode each script file in Android code
2. no need to symlink pdf.js and pdf.worker.js
3. adds sourcemaps in debug builds to help debug some pdf.js related
   issues
2023-09-16 04:20:38 -04:00