You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "sunnyawake (JIRA)" <ji...@apache.org> on 2017/10/13 05:04:00 UTC

[jira] [Commented] (PDFBOX-3963) PDCIDFont.readVerticalDisplacements exceptions

    [ https://issues.apache.org/jira/browse/PDFBOX-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203057#comment-16203057 ] 

sunnyawake commented on PDFBOX-3963:
------------------------------------

when open the attached file, throws the following exceptions:

java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSNumber
	at org.apache.pdfbox.pdmodel.font.PDCIDFont.readVerticalDisplacements(PDCIDFont.java:153)
	at org.apache.pdfbox.pdmodel.font.PDCIDFont.<init>(PDCIDFont.java:67)
	at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:74)
	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
	at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:129)
	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
	at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
	at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)

> PDCIDFont.readVerticalDisplacements exceptions
> ----------------------------------------------
>
>                 Key: PDFBOX-3963
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3963
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.7
>         Environment: mac 10.12.6 jdk1.8
>            Reporter: sunnyawake
>         Attachments: 0034-WS·2013-D30-00039-001.pdf
>
>
> pdfbox throws exception when load the attached pdf file.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org