mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 13:39:54 +08:00
Released builds ship only public/pdfjs/wasm and pass just wasmUrl to getDocument, so PDF.js cannot translate any font that depends on a predefined CMap. Those fonts (Adobe-GB1/Japan1/Korea1, i.e. most CJK documents) are then dropped entirely: no glyphs are painted and no text items are produced, so headings disappear while their line height stays reserved, and the affected runs cannot be selected, copied or searched. Copy pdfjs-dist/cmaps next to the decoder assets, expose pdfjsCMapUrl() and pass cMapUrl + cMapPacked. Refs #2055