Pages: 1
Print
Author Topic: TOPLEAF: Populating PDF document properties  (Read 3232 times)
jlm05
Member

Posts: 79


« on: January 19, 2012, 01:45:34 PM »

In the PDFs generated from XMetal using the "XMetal Enhanced PDF via RenderX XEP" option, the document properties for the PDF (from within the PDF, select File --> Properties) have values populated from the document.

Title - mainbooktitle and first booktitlealt
Author - name of the company (from the bookmap bookmeta/bookowner/organization tag)
Subject - shortdescription from the first topic
Keywords - name of the product (from the bookmap bookmeta/keyword tag)

Is there any way to replicate any of this in a PDF generated using a TopLeaf stylesheet?

Currently the Title is "Template" and the Author is "Turn-Key Systems Pty Ltd".
Logged
jlm05
Member

Posts: 79


« Reply #1 on: January 19, 2012, 01:58:26 PM »

Never mind. My coworker did a better job of searching the Mapping Guide and found the answer.
Logged
TripleDoh
Member

Posts: 3


« Reply #2 on: March 07, 2013, 09:18:12 AM »

Hey jlm05.
I have the same issue. Can you explain your solution, maybe with an exapmle.
Thanx.
Logged
tonys
JustSystems Partner
Member

Posts: 80


« Reply #3 on: March 08, 2013, 02:54:36 PM »

There are a number of meta data properties that you can set within TopLeaf. The ones with names beginning with "pdf." control PDF creation.

For example, the following will set the Title field in the PDF:

<set var="PdfTitle" meta="pdf.title" string="My Document"/>

(the variable name is not important, but needs to be present). In practice you would probably use a value that had been extracted from the source content. You can add this to the custom content of any mapping.

For a full list of the meta data values see section 11.4.8 of the Mapping Guide.
Logged
Pages: 1
Print
Jump to: