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 2018/04/18 17:39:00 UTC

[jira] [Comment Edited] (PDFBOX-4197) PDStructureElement.getAttributes() ignores reference objects

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

Tilman Hausherr edited comment on PDFBOX-4197 at 4/18/18 5:38 PM:
------------------------------------------------------------------

I found another occurence and I fixed it too. I agree that a test case would be nice but I don't have a test file. If possible, please attach it here. Alternatively I could write some code that goes through our test files hoping to hit such an case.


was (Author: tilman):
I found another occurence and I fixed it too. I agree that a test case would be nice but I don't have a test file. If possible, please attach it here. Alternatively I could write some code that goes through our test files hoping to hit such an example.

> PDStructureElement.getAttributes() ignores reference objects
> ------------------------------------------------------------
>
>                 Key: PDFBOX-4197
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4197
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.13, 2.0.9
>         Environment: N/A
>            Reporter: Bill Janssen
>            Priority: Major
>              Labels: StructureTree
>             Fix For: 1.8.15, 2.0.10, 3.0.0 PDFBox
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Attribute dictionaries attached to a structure element may be either direct or references.  getAttributes() handles the direct case but ignores object references without error messages.  This can also lead to invalid revision numbers attached to the attribute dictionaries it does handle properly.
>  
> The fix would be to add another branch to the iteration loop in PDStructureElement.getAttributes(), to handle object references.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org