Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.8
-
None
Description
Loading a document and saving it via saveIncremental throws java.lang.NullPointerException.
PDDocument doc = PDDocument.load(input);
doc.saveIncremental(...);
Exception in thread "..." java.lang.NullPointerException
at org.apache.pdfbox.pdfparser.PDFXRefStream.getStream(PDFXRefStream.java:90)
at org.apache.pdfbox.pdfwriter.COSWriter.doWriteXRefInc(COSWriter.java:697)
at org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1139)
at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:578)
at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1516)
at org.apache.pdfbox.pdmodel.PDDocument.saveIncremental(PDDocument.java:1397)
at org.apache.pdfbox.pdmodel.PDDocument.saveIncremental(PDDocument.java:1372)
at ...
Attachments
Issue Links
- duplicates
-
PDFBOX-45 Support incremental save
- Closed