axf:value

(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Document Information for PDF Output

Document information such as an author and title can be embedded in the PDF. AH Formatter V6.3 generates document information automatically by adding the following extended elements. The information that was embedded into PDF can be seen by Adobe Acrobat or Reader.

In HTML, the setting equivalent to axf:document-info can be specified with the <meta> tag. The setting of <meta name="document-title"> will take precedence over the setting of <title>.

Common Usage: Specifies the document information. The information is not included in the generated areas. For example, this information is embedded into PDF.
Areas:None.
Constraints:

<!ELEMENT axf:document-info EMPTY> <!ATTLIST axf:document-info name CDATA #REQUIRED> <!ATTLIST axf:document-info value CDATA #REQUIRED>

The axf:document-info extension property can be placed in any position right under the fo:root and before fo:page-sequence. Its properties are "name" and "value", which are required. The value of 'name' must be one of the followings: The information with * will be outputted either to the first document or all documents generated by multi-volume output by specifying the axf:document-info-include property. Other information will be always outputted to all documents generated by multi-volume output.
  • document-title

    Specifies the title of the document.

  • subject

    Specifies the subtitle of the document.

  • author

    Specifies the author of the document.

  • author-titleno-LT

    Specifies the title or some keywords of the author.

  • description-writerno-LT

    Specifies the author of the document description.

  • keywords

    Enumerates the comma-deliminated keyword.

  • copyright-statusno-LT

    Specifies the status of the copyright using either of the following.

    • Unknown
    • Copyrighted
    • PublicDomain

  • copyright-noticeno-LT

    Specifies the information of the copyright.

  • copyright-info-urlno-LT

    Specifies the URL of the copyright information. This URL is treated just as a character string and the program does not access this URL.

  • xmpno-LT

    Specifies the URL of XMP. This URL follows <uri-specification> in the XSL specification. See also URI. The following settings become invalid when XMP is specified.

    • author-title
    • description-writer
    • copyright-status
    • copyright-notice
    • copyright-info-url

    The validity of a XMP file is checked simply whether it is well-formed or not. The contents are not detected. When contradictory or incorrect contents are included, the effect is not guaranteed.

  • pagemode*

    Specifies the method of the display when the document is opened. The following one can be specified.

    • UseNone
      Neither document outline nor thumbnail images visible
    • UseOutlines
      Document outline visible
    • UseThumbs
      Thumbnail images visible
    • FullScreen
      Full-screen mode, with no menu bar, window controls, or any other window visible
    • UseOC
      Optional content group panel visible

    UseOC can be specified for PDF1.5 or later. The default is UseOutlines when the outline exists.

  • pagelayout*

    Specifies the page layout when a document is opened. You can specify either of the followings.

    • SinglePage
      Display one page at a time
    • OneColumn
      Display the pages in one column
    • TwoColumnLeft
      Display the pages in two columns, with odd-numbered pages on the left
    • TwoColumnRight
      Display the pages in two columns, with odd-numbered pages on the right
    • TwoPageLeft
      Display the pages two at a time, with odd-numbered pages on the left
    • TwoPageRight
      Display the pages two at a time, with odd-numbered pages on the right

    TwoPageLeft and TwoPageRight can be specified for PDF1.5 or later. The default value is SinglePage.

  • hidetoolbar*

    Specifies whether to hide a tool bar or not when a document is opened with the value of true or false. The default value is false.

  • hidemenubar*

    Specifies whether to hide a menu bar or not when a document is opened with the value of true or false. The default value is false.

  • hidewindowui*

    Specifies whether to hide user interface elements (a scroll bar, the control for navigation, etc.) or not when a document is opened with the value of true or false. The default value is false.

  • fitwindow*

    Specifies whether to change the size of a document window to fit the page size or not when a document is opened with the value of true or false. The default value is false.

  • centerwindow*

    Specifies whether to arrange a document window in the center of a screen or not when a document is opened with the value of true or false. The default value is false.

  • displaydoctitle*

    Specifies whether to display the title of a document or not when a document is opened with the value of true or false. The default value is false. Effective with PDF 1.4 or later.

  • openaction*

    Specifies the address displayed when the document is opened or the action executed. The value similar to <number-with-fragment> of internal-destination can be described here. Action with a name and JavaScript can also be specified at this time.

    • value="#Named=Print"
      The print dialog will be displayed when the document is opened.
    • value="#Named=LastPage"
      The last page is displayed when the document is opened.
    • value="#JavaScript=arbitrary JavaScript program"
      Executes the specified JavaScript.

    # Named coming right after or JavaScript are case insensitive. Actions which can be specified to Named correspond to the menu name of a viewer. The operation in the case where an unknown name is specified to Named, or in the case where the wrong program is specified to JavaScript are not guaranteed. JavaScript cannot be specified with PDF/A

Contents:EMPTY
Examples:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"> <axf:document-info name="document-title" value="The document title"/> <axf:document-info name="subject" value="The document subject"/> <axf:document-info name="author" value="The author"/> <axf:document-info name="keywords" value="Comma separated keywords list"/> ...

axf:document-info as a child of fo:page-sequence is effective only for PDF output in multi separate volume. axf:document-info as a child of fo:page-sequence overwrites axf:document-info as a child of fo:root and is utilized for an information of the document when outputting in separate volume. Therefore the same document information is embedded in all the separate volumes unless axf:document-info is specified to fo:page-sequence.

"openaction" and "pagemode" cannot be specified for the multi separate volume. Only the specification of the right under of fo:root is effective. When the separate volume is outputted, it is specified for the first separate volume.

With AH Formatter V6.3 Lite, axf:document-info specified to fo:page-sequence is ignored.

axf:pdftag / CSS -ah-pdftag

Specifies the tag name of Tagged PDF. [no-LT]

Value:<string>
Initial:empty string
Applies to:all formatting objects
Inherited:no
Percentages:N/A

Customizes the tag name when outputting Tagged PDF. When you want to make the tag name of the relevant element "paragraph", e.g., specify as follows:

<fo:block axf:pdftag="Paragraph">

XSL-FO sample:

<fo:root hyphenation-push-character-count="1" hyphenation-remain-character-count="1" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

This document will zoom in to 200% when it is opened

<axf:document-info name="openaction" value="#zoom=200"/>

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: