You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/08 11:01:34 UTC

[jira] [Commented] (PDFBOX-2675) PDOutlineNode.getParent uses /P item as fallback for /Parent

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

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

Commit 1658144 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1658144 ]

PDFBOX-2675: remove /P fallback that is not in the spec, as reported by Andrea Vacondio

> PDOutlineNode.getParent uses /P item as fallback for /Parent
> ------------------------------------------------------------
>
>                 Key: PDFBOX-2675
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2675
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.8, 1.8.9, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> On behalf of [~avacondio]:
> {quote}I was writing unit test for the PDOutlineNode.getParent which gets the
> parent node looking for a PARENT or a P key in the outline item dictionary.
> Now according to table 153 of the specs only PARENT should be there so I
> was wandering if someone knows better why the P is there and if it should
> be covered by the unit. {quote}
> Indeed, the /P is not in the spec. This has been there since 2008, and we don't have the prior history. Probably somebody copied code from elsewhere. I'll remove it. 



--
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