[
https://issues.apache.org/jira/browse/PDFBOX-5334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450557#comment-17450557
]
Tilman Hausherr commented on PDFBOX-5334:
-----------------------------------------
There is at least one error in the /ToUnicode stream at
"Root/Pages/Kids/\[0\]/Resources/Font/JF2/ToUnicode"
{code}
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <</Registry (Adobe) /Ordering (Identity) /Supplement 0>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
0 beginbfchar
<0003> <0030>
<0004> <0032>
<0005> <0033>
...
<0064> <FF09>
<0065> <5347>
<0066> <0025>
endbfchar
endcmap
CMapName currentdict /CMap difineresource pop
end
end
{code}
"0 beginbfchar" means 0 entries. However there are more then 0 entries.
Probably not relevant for us, but "difineresource" has a misspelling, that
should be "defineresource".
The debug messages are irrelevant here.
> Invalid ToUnicode CMap in font BWSimSun
> ---------------------------------------
>
> Key: PDFBOX-5334
> URL: https://issues.apache.org/jira/browse/PDFBOX-5334
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.24
> Reporter: guowenchao
> Priority: Major
> Attachments: a.pdf
>
>
> I met a problem,When I use pdfbox to parse PDF files pdfbox alarm is
> prompted.
> I don't know how to solve it。Incomplete parsing of file content
>
> 23:24:05.206 [main] WARN org.apache.pdfbox.pdmodel.font.PDFont - Invalid
> ToUnicode CMap in font BWSimSun
> 23:24:05.209 [main] WARN org.apache.pdfbox.pdmodel.font.PDFont - Using
> predefined identity CMap instead
> 23:24:05.243 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable -
> Type 4 GSUB lookup table is not supported and will be ignored
> 23:24:05.244 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable -
> Type 4 GSUB lookup table is not supported and will be ignored
> 23:24:05.244 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable -
> Type 6 GSUB lookup table is not supported and will be ignored
> 23:24:05.244 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable -
> Type 4 GSUB lookup table is not supported and will be ignored
> 23:24:05.244 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable -
> Type 4 GSUB lookup table is not supported and will be ignored
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]