pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler <andr...@lehmi.de>
Subject Re: Last commit in SVN HEAD broke the PDFWriter
Date Mon, 27 Jul 2015 07:37:07 GMT
Hi Roberto,

> Roberto Nibali <rnibali@gmail.com> hat am 27. Juli 2015 um 09:28 geschrieben:
> Dear developers
> The last commit 1692730 by lehmi, 18:36, broke the PDFWriter. The result
> is: The file xx.pdf cannot be open; It may be damaged or use a file format
> that Preview doesn’t recognize. The same when using Acrobat Professional.
> Reverting the commit to the old one makes everything work again. What is
> the reason for this change?
>             // use previous startXref value as new PREV value
>             trailer.setLong(COSName.PREV, doc.getStartXref());
>             //trailer.removeItem(COSName.PREV);
> The trailer.removeItem(COSName.PREV) works, the new
> trailer.setLong(COSName.PREV, doc.getStartXref()) code does not.
Thanks for your hint.

Can you be a little bit more specific, please? What kind of pdf did you try to
sign? Can you provide us with a sample pdf?

> Best regards
> Roberto


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

View raw message