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

Tilman Hausherr commented on PDFBOX-4091:
-----------------------------------------

There are two objects 7. One at offset 2547, and one at offset 468386. The one 
at offset 2547 is referenced by the xref table so that is the good one. The 
other object 7 is the one who has the bad length. 


> Cannot analyze signatures : Wrong type of referenced length object COSObject
> ----------------------------------------------------------------------------
>
>                 Key: PDFBOX-4091
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4091
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.7, 2.0.8
>            Reporter: Endre Pető 
>            Priority: Critical
>         Attachments: E-SZ00104418_20180111_040700.pdf
>
>
> Dear Colleagues,
> From one of our customer, we have got a pdf. According them and the adobe 
> there is a PKCS7 signature but according the DSS 5.2 there is no. I attached 
> this voucher.
> What do you think?
> One of DSS developer quickly checked their log and we got:
> e.e.e.d.p.pdfbox.PdfBoxSignatureService : Cannot analyze signatures : Wrong 
> type of referenced length object COSObject
> Unknown macro: \{8, 0}
> : COSDictionary
> java.io.IOException: Wrong type of referenced length object COSObject
> : COSDictionary
> at org.apache.pdfbox.pdfparser.COSParser.getLength(COSParser.java:908) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:950) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:781) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at 
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:742)
>  ~[pdfbox-2.0.7.jar!/:2.0.7]
> at 
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:673)
>  ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:633) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:241) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:276) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1224) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1201) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1182) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1165) 
> ~[pdfbox-2.0.7.jar!/:2.0.7]
> at 
> eu.europa.esig.dss.pdf.pdfbox.PdfBoxSignatureService.getSignatures(PdfBoxSignatureService.java:321)
>  [dss-pades-5.2.jar!/:na]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to