pdf document properties

homesupportextensionspdf document properties

PDF Document Properties

PDF format allows setting properties of the PDF file. They can be opened via menu item File->Document Properties... inside Adobe Acrobat or Adobe Reader. To embed any property into the generated PDF document produced by Altsoft Xml2PDF, use the <altsoft:document-properties> tag inside XSL-FO declarations section.

XSL-FO

DTD:
<!ELEMENT document-properties (author?,subject?,keywords?,custom*)>

<!ELEMENT author EMPTY>
<!ATTLIST author
    value CDATA #REQUIRED>

<!ELEMENT subject EMPTY>
<!ATTLIST subject
    value CDATA #REQUIRED>

<!ELEMENT keywords EMPTY>
<!ATTLIST keywords
    value CDATA #REQUIRED>

<!ELEMENT custom EMPTY>
<!ATTLIST custom
    name CDATA #REQUIRED
    value CDATA #REQUIRED>

This tag must be the first level descendant of <fo:declarations> element.

For example:

<fo:declarations xmlns:altsoft=""http://alt-soft.com/xml2pdf/extensions">
  <altsoft:document-properties>
    <altsoft:author value="Victor Vishnyakov"/>
    <altsoft:subject value="Adding Document Properties to PDF file"/>
    <altsoft:keywords value="PDF XSL-FO document properties"/>
    <altsoft:custom name="Related Product" value="Altsoft Xml2PDF"/>
  </altsoft:document-properties>
</fo:declarations>