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

Tilman Hausherr edited comment on PDFBOX-3227 at 2/8/16 5:38 PM:
-----------------------------------------------------------------

I think this is a misunderstanding... to be signed, the PDF must exist as a 
byte sequence.  What saveIncremental does is to append stuff to such a byte 
sequence. This sequence doesn't exist before a classic save.

The API has this: "Save the PDF as an incremental update. This is only possible 
if the PDF was loaded from a file."


was (Author: tilman):
I think this is a misunderstanding... to be signed, the PDF must exist as a 
byte sequence.  What saveIncremental does is to append stuff to such a byte 
sequence. This sequence doesn't exist before a classic save.

> Impossible to sign merged PDFs through stream only
> --------------------------------------------------
>
>                 Key: PDFBOX-3227
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3227
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Thierry Boschat
>
> Hello,
> Recently, I upgraded from 1.8.1 to 2.0.0-RC3 because PDFBOX-2716 was fixed.
> Now I've got another problem and I don't think it's a misunderstanding of the 
> API.
> -     If I sign a PDF then save it that works. 
> -     But If I merge 2 PDFs with (PDFMergerUtility). The two pages are 
> well-merged (because pdDocument.getNumberOfPages()==2) but once I use 
> saveIncremental. It results in a PDF well signed but with only one of the two 
> pages.
> -     If I save the merged PDF then reload it and sign it works.
> Is it possible to sign a merged PDF through stream only? 



--
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