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

Peter Pinnau commented on PDFBOX-3728:
--------------------------------------

The document has not been modified by hand. But maybe the file is broken for 
other reason.

A colleague of mine created that file out of Microsoft Word. It was a test 
document for another system. There we use PDFBox to add keywords and 
annotations to PDF documents.

The fields
/DMS.doctype (ER)
/DMS.Mandant (PPW)
/DMS.Datum (2017-03-14)
/ER.Sachkto-Nr (094.02410)
/ER.Sachkto (Parkhaus)

come from that processing.

The /_TemplateID (TC018408419991) seems to come from Microsoft Word. I will try 
to reproduce the problem by generating and validating other files.

Thank you.


> org.apache.pdfbox.cos.COSDictionary cannot be cast to 
> org.apache.pdfbox.cos.COSStream
> -------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3728
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3728
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering, Text extraction
>    Affects Versions: 2.0.4, 2.0.5
>         Environment: Ubuntu + Windows, JRE 1.8.0 121
>            Reporter: Peter Pinnau
>         Attachments: test.pdf
>
>
> The attached PDF document produces an exception in rendering or text 
> extraction.
> Stacktrace:
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be 
> cast to org.apache.pdfbox.cos.COSStream
>       at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:157)
>       at 
> org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:485)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
>       at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:206)
>       at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
>       at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
>       at 
> biz.pinnau.rcp.pdf.java.PDFBoxHandler.renderCurrentImage(PDFBoxHandler.java:52)
>       at 
> biz.pinnau.rcp.pdf.SWTPDFPositionChooser$12.run(SWTPDFPositionChooser.java:403)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to