Tilman Hausherr created PDFBOX-6296:
---------------------------------------
Summary: Page label merge doesn't use /Kids
Key: PDFBOX-6296
URL: https://issues.apache.org/jira/browse/PDFBOX-6296
Project: PDFBox
Issue Type: Bug
Components: Utilities
Affects Versions: 3.0.8 PDFBox, 2.0.37
Reporter: Tilman Hausherr
Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>From Claude Sonnet 5.5:
*Possible NPE in page-label merging.* If the destination's {{/PageLabels}}
exists but uses {{/Kids}} instead of {{{}/Nums{}}}, {{destNums}} is {{null}}
and {{destNums.size()}} throws. A related problem: if the destination has pages
but no labels, the merged {{/Nums}} array starts at a non-zero index, which the
spec doesn't allow.
===
Additional to the possible NPE, I think the whole merge of page labels is
broken: this is a number tree but this isn't considered. (Maybe because the
getTreeAsMap method didn't exist until recently)
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]