You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Dave Roxburgh (Jira)" <ji...@apache.org> on 2023/03/17 13:53:00 UTC
[jira] [Commented] (FOP-1722) Values in PDF Number Trees must be indirect references
[ https://issues.apache.org/jira/browse/FOP-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17701761#comment-17701761 ]
Dave Roxburgh commented on FOP-1722:
------------------------------------
Attached patch resolves.
[^patch3.txt]
> Values in PDF Number Trees must be indirect references
> ------------------------------------------------------
>
> Key: FOP-1722
> URL: https://issues.apache.org/jira/browse/FOP-1722
> Project: FOP
> Issue Type: Bug
> Components: renderer/pdf
> Affects Versions: 2.5
> Environment: Operating System: All
> Platform: All
> Reporter: Vincent Hennebert
> Attachments: patch3.txt, text.fo, text.pdf
>
>
> See PDF Reference, Third Edition, Section 3.8.5, "Number Trees": the Nums entry
> must be an array of key-value pairs where value is an indirect reference to the
> object associated with the key.
> However, the o.a.f.pdf.PDFNumsArray class does nothing to ensure that elements
> added to the array are actually indirectly referenced. So generated PDFs are
> strictly speaking invalid.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)