[
https://issues.apache.org/jira/browse/PDFBOX-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778041#comment-17778041
]
Andreas Lehmkühler commented on PDFBOX-5704:
--------------------------------------------
There is some issue with the embedded font
{code}
Warning [PDCIDFontType2] Could not read embedded OTF for font SWKOVJ+TTA3Ao00
java.io.IOException: 'head' table is mandatory
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:176)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:144)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:66)
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:123)
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:72)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:138)
at
org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:97)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:96)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
at
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:892)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:530)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:505)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:282)
at
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:330)
at
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:532)
at
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Warning [PDCIDFontType2] Using fallback font LiberationSans for CID-keyed
TrueType font SWKOVJ+TTA3Ao00
Warning [GlyphCache] No glyph for code 1 (CID 0001) in font SWKOVJ+TTA3Ao00
{code}
> char not rendered
> -----------------
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.29, 3.0.0 PDFBox
> Reporter: sunnyawake
> Priority: Major
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses
> is a cff font,not PDCIDFontType2
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]