You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/05/09 14:40:13 UTC

[jira] [Comment Edited] (PDFBOX-3343) PDOutlineItem getNextSibling() is recursive

    [ https://issues.apache.org/jira/browse/PDFBOX-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276426#comment-15276426 ] 

Tilman Hausherr edited comment on PDFBOX-3343 at 5/9/16 2:40 PM:
-----------------------------------------------------------------

I believe that it is your file that is incorrect and may have been inspired by the Spuckler family tree. Please open it with PDFDebugger.
!outlines-screenshot.png!

first top item is 35
last top item is 38
second top item is 37, child (entry "first" and "last") is 38. So the child of the second sibling (37) is also its last born brother (38).


was (Author: tilman):
I believe that it is your file that is incorrect. Please open it with PDFDebugger.
!outlines-screenshot.png!

(... more to come ....)

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org