2 Commits

Author SHA1 Message Date
LaiYongqiang
c446acade0 fix(web): pass cMapUrl so CID fonts are not dropped
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
2026-10-26 16:24:32 +08:00
evan188199-tech
791c8d28db fix(reading): package PDF.js decoder assets (#1305)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-10 23:41:36 +08:00