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

Tilman Hausherr edited comment on PDFBOX-2942 at 8/24/15 8:31 PM:
------------------------------------------------------------------

(Sorry, I was just asking for as much stuff possible, in the hope of finding 
something.)

Your initial attachment has another unusal thing: the unsigned report-poc.pdf 
file has two %%EOF lines. The "signed" file has no pages.

I tried signing the report-poc.pdf file with the example signing 
(CreateSignature.java) and that works. I replaced a part of it with your code 
(but used our demo sign interface) and it also works.

Are you using the latest build?


was (Author: tilman):
(Sorry, I was just asking for as much stuff possible, in the hope of finding 
something.)

Your initial attachment has another unusal thing: the unsigned report-poc.pdf 
file has two %%EOF lines. The "signed" file has no pages.

I tried signing the report-poc.pdf file with the example signing 
(CreateSignature.java) and that works. I replaced a part of it with your code 
(but used our demo sign interface) and it also works.

> Can't sign particular PDF
> -------------------------
>
>                 Key: PDFBOX-2942
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2942
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel, Signing
>    Affects Versions: 2.0.0
>         Environment: Java 1.8.0_51
> Maven 3.2.5
> PDFBox 2.0.0-SNAPSHOT
>            Reporter: Diego Rodrigues Azevedo
>         Attachments: report-poc-signed.pdf, report-poc.pdf
>
>
> I couldn't sign this particular PDF using pdfbox. I could sign bigger PDFs, 
> so it's not about the size. Whenever I sign it, and try to open with adobe 
> reader, it says "there was a problem opening this pdf", but it opens the 
> unsigned version immediately. I'm using version 2.0.0-SNAPSHOT
> I think it's because the pdf does not have a xref table. That's the only 
> difference I could find with other signable pdfs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to