Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 583 by
halc...@google.com: toUnicode map ignored
https://bugs.chromium.org/p/pdfium/issues/detail?id=583The attached PDF draws one glyph, glyph 0x01:
BT
/F0 18 Tf
1 0 0 -1 16 32 Tm
<01> Tj
ET
The ToUnicode map is:
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0001> <0001>
endcodespacerange
1 beginbfchar
<0001> <0000>
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
endstream
Which should map glyph 0x01 to U+0000.
However pdfium extracts U+0001,
$ pdfium_test --txt skbug_5606_b.pdf
$ hexdump -e '8/4 "%04X " "\n"' skbug_5606_b.pdf.0.txt
FEFF 0001
Attachments:
skbug_5606_b.pdf 2.7 KB
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings