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

Tilman Hausherr commented on PDFBOX-3652:
-----------------------------------------

Could it be that your file has an incorrect /Last element in the root? I.e. 
that the /Last is not identical to calling /Next until there's none? My 
understanding is tthat /Last is the last of the direct children, the 
specification says so "The last of this item’s immediate children in the 
outline hierarchy."

In Tree1 first is 13, last is 18. The child has first 14 and last 18. Next is 
15, then 16, and that's it. So the last would be 16.

> PDFMergerUtility: The source outline of merged PDF can be end up inside deep 
> sub-outline if destination outline contain sub-outline
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3652
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3652
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.0.4
>            Reporter: Christian Hadi
>            Priority: Minor
>              Labels: patch, pdfmergerutility
>         Attachments: after_patch.pdf, before_patch.pdf, Inserted.Acrobat.pdf, 
> Merged.Acrobat.pdf, PDFMergerUtility.patch, Tree1.pdf, Tree2.pdf
>
>
> The source outline of merged PDF can be end up inside deep sub-outline if 
> destination outline contain sub-outline.
> The patch propose to change this behavior that merged source outline will 
> always at the root of destination outline.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to