Question
FOSI fragment for outputting PDF Document Properties
Hi all,
Surprisingly, I was only recently asked to do automatically populate the
PDF document properties. I ran into one glitch along the way. Although the
documentation in help is correct, the namespace information on the web is
misleading. The key names are not capitalized and they need to be. The
namespace info with the misleading references to "title" for example that
should be "Title" as possible Key values:
<usetext source="!<atidmd:DocumentMetaData source="local"><br /><atidmd:DocView mode="bookmarks"<br />destination="topofdocument"></atidmd:DocView><br /><atidmd:DocInfo><br /><atidmd:Entry><br /><atidmd:Key>Title</atidmd:Key><br /><atidmd:Value>Your Title Here - Can be text variable set from attr on<br />root</atidmd:Value><br /></atidmd:Entry><br /><atidmd:Entry><br /><atidmd:Key>Author</atidmd:Key><br /><atidmd:Value>Your Author Here - Ditto</atidmd:Value><br /></atidmd:Entry><br /></atidmd:DocInfo><br /><atidmd:Outline>!,bookmarks.txt,!</atidmd:Outline><br /></atidmd:DocumentMetaData>!" placemnt="after">
</usetext>
</charsubset>
</att>
where ID="topofdocument" on the root element but could be any named
location (I think that's the right PDF-term) or ID value (that would be the
XML term) in your content.
How to fill bookmarks.txt isn't easy to summarize ... so I didn't.
--
Paul Nagai
Surprisingly, I was only recently asked to do automatically populate the
PDF document properties. I ran into one glitch along the way. Although the
documentation in help is correct, the namespace information on the web is
misleading. The key names are not capitalized and they need to be. The
namespace info with the misleading references to "title" for example that
should be "Title" as possible Key values:
<usetext source="!<atidmd:DocumentMetaData source="local"><br /><atidmd:DocView mode="bookmarks"<br />destination="topofdocument"></atidmd:DocView><br /><atidmd:DocInfo><br /><atidmd:Entry><br /><atidmd:Key>Title</atidmd:Key><br /><atidmd:Value>Your Title Here - Can be text variable set from attr on<br />root</atidmd:Value><br /></atidmd:Entry><br /><atidmd:Entry><br /><atidmd:Key>Author</atidmd:Key><br /><atidmd:Value>Your Author Here - Ditto</atidmd:Value><br /></atidmd:Entry><br /></atidmd:DocInfo><br /><atidmd:Outline>!,bookmarks.txt,!</atidmd:Outline><br /></atidmd:DocumentMetaData>!" placemnt="after">
</usetext>
</charsubset>
</att>
where ID="topofdocument" on the root element but could be any named
location (I think that's the right PDF-term) or ID value (that would be the
XML term) in your content.
How to fill bookmarks.txt isn't easy to summarize ... so I didn't.
--
Paul Nagai

