The /Kids attribute is missing because the /Parent ref is wrong.
We should detect this and use the existing fallback mechanism for knownParent
java.lang.NullPointerException: Cannot invoke "org.sejda.sambox.cos.COSArray.removeObject(org.sejda.sambox.cos.COSBase)" because "kids" is null
at org.sejda.sambox.pdmodel.PDPageTree.remove(PDPageTree.java:564)
at org.sejda.sambox.pdmodel.PDPageTree.remove(PDPageTree.java:527)
at org.sejda.sambox.pdmodel.PDDocument.removePage(PDDocument.java:181)
at org.sejda.impl.sambox.component.PDDocumentHandler.removePage(PDDocumentHandler.java:336)
The /Kids attribute is missing because the /Parent ref is wrong.
We should detect this and use the existing fallback mechanism for
knownParent