[
https://issues.apache.org/jira/browse/PDFBOX-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276562#comment-15276562
]
Yan commented on PDFBOX-3343:
-----------------------------
I've tried with LO 5.0.6, the same story.
I'm writing program that simply merges several pdf's and creates united outline
(see screenshot). Adobe Acrobat manages to do it correctly somehow.
!http://i.imgur.com/5qcwPtz.png!
I don't want to get program which doesn't work (hangs) for some pdfs, I need to
merge tons of PDFs from different sources and need robust solution. All readers
deal fine with this "corrupted" outline. So obtaining array of outlines will
fully satisfy me
> PDOutlineItem getNextSibling() is recursive
> -------------------------------------------
>
> Key: PDFBOX-3343
> URL: https://issues.apache.org/jira/browse/PDFBOX-3343
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.1
> Environment: Linux, openjdk-7
> Reporter: Yan
> Priority: Minor
> Attachments: doc1.pdf, outlines-screenshot.png
>
>
> Method getNextSibling from
> org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem
> is recursive: it returns first outline item, if it's object is the last
> outline item.
> For example we have this otline:
> h1
> h2
> h3
> h3.getNextSibling() will return h1, but should return null
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]