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 "Vincent Hennebert (JIRA)" <ji...@apache.org> on 2014/06/06 21:02:02 UTC
[jira] [Updated] (FOP-2385) [PATCH] Add ability to specify custom
properties in the Document Information Dictionary
[ https://issues.apache.org/jira/browse/FOP-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Hennebert updated FOP-2385:
-----------------------------------
Attachment: pdf-custom-properties.patch
> [PATCH] Add ability to specify custom properties in the Document Information Dictionary
> ---------------------------------------------------------------------------------------
>
> Key: FOP-2385
> URL: https://issues.apache.org/jira/browse/FOP-2385
> Project: Fop
> Issue Type: Improvement
> Components: renderer/pdf
> Reporter: Vincent Hennebert
> Assignee: Vincent Hennebert
> Labels: patch
> Attachments: pdf-custom-properties.patch
>
>
> It is possible to add custom key/value pairs in the Info dictionary of a PDF document. Those custom properties will appear in the ‘Custom’ tab of Adobe Reader’s ‘Document Properties’ window (not sure about other viewers though).
> This patch adds the possibility to do that. A pdf:info element can be added as a child of fo:declarations and contain the custom properties. For example:
> {code:xml}
> <fo:declarations>
> <pdf:info xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
> <pdf:name key="MyProperty">MyValue</pdf:name>
> <pdf:name key="MyOtherProperty">MyOtherValue</pdf:name>
> </pdf:info>
> </fo:declarations>
> {code}
> Since it’s small, I thought that would be overkill to create a branch just for that. So I’m putting it here for peer review.
> If nobody objects by 2014/06/12, I’m going to commit this patch to trunk.
--
This message was sent by Atlassian JIRA
(v6.2#6252)