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

ASF subversion and git services commented on PDFBOX-4423:
---------------------------------------------------------

Commit 1850486 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1850486 ]

PDFBOX-4423: getStructParent() and getStructParents() must return -1 when not 
available; consider this when merging and when testing merge; add previously 
failing test with file that has annotation but no /StructParent

> Merge test checkWithNumberTree() fails when widget has no StructParent
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-4423
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4423
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.13
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: StructureTree
>             Fix For: 2.0.14, 3.0.0 PDFBox
>
>         Attachments: 000746.pdf
>
>
> I tried merging a large amount of digitalcorpora files and it failed 
> immediately in checkWithNumberTree(). I narrowed it down to a single file - 
> that one has fields with widgets with no StructParent. PDFBox returns these 
> as "0" which would be a valid number. These getters should return -1 instead 
> and callers should check the result.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to