[
https://issues.apache.org/jira/browse/PDFBOX-5834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Steiner updated PDFBOX-5834:
----------------------------------
Attachment: tmp.patch
> PDF split missing names from documentCatalog
> --------------------------------------------
>
> Key: PDFBOX-5834
> URL: https://issues.apache.org/jira/browse/PDFBOX-5834
> Project: PDFBox
> Issue Type: Bug
> Reporter: Simon Steiner
> Priority: Major
> Attachments: tmp.patch
>
>
> java -jar app/target/pdfbox-app-2.0.32-SNAPSHOT.jar PDFSplit xxx.pdf
> I would expect to see the names dict inside the documentCatalog which is used
> to store pdf templates
> Maybe Splitter createNewDocument should have:
> {code:java}
> if (getSourceDocument().getDocumentCatalog().getNames() != null &&
>
> getSourceDocument().getDocumentCatalog().getNames().getCOSDictionary().containsKey("Templates"))
> {
> document.getDocumentCatalog().setNames(
> getSourceDocument().getDocumentCatalog().getNames());
>
> document.getDocumentCatalog().getNames().getCOSDictionary().removeItem(COSName.PAGES);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]