Hi Roberto, > Roberto Nibali <rnib...@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 BR Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org