pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Nibali <rnib...@gmail.com>
Subject Last commit in SVN HEAD broke the PDFWriter
Date Mon, 27 Jul 2015 07:28:04 GMT
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());

The trailer.removeItem(COSName.PREV) works, the new
trailer.setLong(COSName.PREV, doc.getStartXref()) code does not.

Best regards


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message