Skip to main content
1-Visitor
December 14, 2011
Question

FOSI fragment for outputting PDF Document Properties

  • December 14, 2011
  • 5 replies
  • 1316 views
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="!&lt;atidmd:DocumentMetaData source="local"&gt;&lt;br /&gt;&lt;atidmd:DocView mode="bookmarks"&lt;br /&gt;destination="topofdocument"&gt;&lt;/atidmd:DocView&gt;&lt;br /&gt;&lt;atidmd:DocInfo&gt;&lt;br /&gt;&lt;atidmd:Entry&gt;&lt;br /&gt;&lt;atidmd:Key&gt;Title&lt;/atidmd:Key&gt;&lt;br /&gt;&lt;atidmd:Value&gt;Your Title Here - Can be text variable set from attr on&lt;br /&gt;root&lt;/atidmd:Value&gt;&lt;br /&gt;&lt;/atidmd:Entry&gt;&lt;br /&gt;&lt;atidmd:Entry&gt;&lt;br /&gt;&lt;atidmd:Key&gt;Author&lt;/atidmd:Key&gt;&lt;br /&gt;&lt;atidmd:Value&gt;Your Author Here - Ditto&lt;/atidmd:Value&gt;&lt;br /&gt;&lt;/atidmd:Entry&gt;&lt;br /&gt;&lt;/atidmd:DocInfo&gt;&lt;br /&gt;&lt;atidmd:Outline&gt;!,bookmarks.txt,!&lt;/atidmd:Outline&gt;&lt;br /&gt;&lt;/atidmd:DocumentMetaData&gt;!" 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

    5 replies

    1-Visitor
    December 14, 2011
    Paul,

    I am still working on this for the book. I'll put together and send as much as is ready asap.

    Suzanne Napoleon
    www.FOSIexpert.com
    "WYSIWYG is last-century technology!"


    1-Visitor
    December 14, 2011
    Attached are some excerpts from Practical FOSI regarding atidmd and PDF output. These are drafts. There's more coding than wording.

    Hope this helps!

    Suzanne

    P.S. All comments welcome -- thanks!


    naglists1-VisitorAuthor
    1-Visitor
    December 14, 2011
    Thanks, Suzanne!

    On Wed, Dec 14, 2011 at 12:02 PM, Suzanne Napoleon <
    SuzanneNapoleon@fosiexpert.com> wrote:

    > Attached are some excerpts from *Practical FOSI* regarding atidmd and PDF
    > output. These are drafts. There's more coding than wording.
    >
    > Hope this helps!
    >
    > Suzanne
    >
    > P.S. All comments welcome -- thanks!
    >
    1-Visitor
    December 15, 2011

    naglists1-VisitorAuthor
    1-Visitor
    December 15, 2011
    Thanks, Paul. I'm sure most sane people use the documentation and wouldn't
    have gone sideways as I did, but it's nice to have it right everywhere.