The purpose of this project is to help learning PDF format and developing PDF tools.
It is
-
based on pdf.js-4.5.136,
-
transpiled using TypeScript-5.2.2@mymain!
- Extract @mymain onto /path_to/TypeScript
-
cd /path_to/TypeScript npm i hereby LKG
- Extract this project onto /path_to/pdf.ts
- In vscode, in the workspace setting, add
"typescript.tsdk": "/path_to/TypeScript/lib"
.
- In vscode, in the workspace setting, add
-
cd /path_to/pdf.ts/src/test deno task server
-
cd /path_to/pdf.ts/src/test deno run --allow-read --allow-run unittest.ts --tsc "/path_to/TypeScript/bin/tsc"
-
cd /path_to/pdf.ts/src/test deno task server
-
cd /path_to/pdf.ts /path_to/TypeScript/bin/tsc --preprocessorNames ~DENO,~TESTING
- Visit http://localhost:9071/src/pdf/viewer.html
GENERIC
on browsers- unittest: 1061 / 1121 (94.6%)