Daniel Persson created PDFBOX-6176:
--------------------------------------
Summary: reported number of objects (7412) is not one plus the
highest object number (7410)
Key: PDFBOX-6176
URL: https://issues.apache.org/jira/browse/PDFBOX-6176
Project: PDFBox
Issue Type: Bug
Affects Versions: 3.0.7 PDFBox, 3.0.0 PDFBox
Reporter: Daniel Persson
Attachments: 180511_A-14.pdf
A new customer reported that they got a bunch of errors during a split
operation in their flow.
{code:java}
$ qpdf --split-pages=1 test.pdf page-%d.pdf
WARNING: test.pdf: reported number of objects (7412) is not one plus the
highest object number (7410)
qpdf: operation succeeded with warnings; resulting file may have some problems
{code}
Seems I could recreate this issue with a lot of files just by loading and
saving a PDF.
{code:java}
public static void main(String[] args) throws Exception {
//PDDocument doc = PDDocument.load(new File("180511_A-14.pdf"));
PDDocument doc = Loader.loadPDF(new File("180511_A-14.pdf"));
doc.save(new File("test.pdf"));
} {code}
I've only been able to reproduce the error with 3.0.x not with 2.0.x.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]