Trisia opened a new pull request, #177:
URL: https://github.com/apache/pdfbox/pull/177
example:
```
125 0 obj
<</Tabs/S/Group<</S/Transparency/Type/Group/CS/DeviceRGB>>/Contents[69 0 R
3646 0 R 70 0 R]/Type/Page/QITE_pageid<</UF 3619 0 R/P 5/D(AA\r)/F 3620 0 R/I
3621 0 R>>/Resources<</ExtGState<</Xi10 1 0 R/GS7 3640 0 R/GS8 3641 0
R>>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/Font<</F7 3633 0 R/F8 3624 0 R/F9
3642 0 R/F1 3627 0 R/F2 3628 0 R/F3 3629 0 R/Xi11 2 0 R>>>>/Parent 82 0
R/StructParents 5/MediaBox[0 0 595.2 841.92]>>
```
see
```
QITE_pageid<</UF 3619 0 R/P 5/D(AA\r)/F 3620 0 R/I 3621 0 R>>
```
object `3621 0 R` is not defined
When I use `PDDocument.saveIncremental` to save the document it causes the
following error:
```
java.lang.NullPointerException
at java.util.Hashtable.computeIfAbsent(Hashtable.java:1004)
at
org.apache.pdfbox.pdfwriter.COSWriter.getObjectKey(COSWriter.java:1089)
at
org.apache.pdfbox.pdfwriter.COSWriter.writeReference(COSWriter.java:1367)
at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDictionary(COSWriter.java:1207)
at
org.apache.pdfbox.pdfwriter.COSWriter.writeDictionary(COSWriter.java:1155)
at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDictionary(COSWriter.java:1202)
at org.apache.pdfbox.cos.COSDictionary.accept(COSDictionary.java:1265)
at
org.apache.pdfbox.pdfwriter.COSWriter.doWriteObject(COSWriter.java:610)
at
org.apache.pdfbox.pdfwriter.COSWriter.doWriteObject(COSWriter.java:643)
at
org.apache.pdfbox.pdfwriter.COSWriter.doWriteObjects(COSWriter.java:540)
at org.apache.pdfbox.pdfwriter.COSWriter.doWriteBody(COSWriter.java:450)
at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1299)
at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:413)
at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1568)
at
org.apache.pdfbox.pdmodel.PDDocument.saveIncremental(PDDocument.java:1078)
```
so we can skip those not define object, make it work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]