|
Professional Formatting Solutions | ||||||||||
|
|||||||||||
|
|
| Element name | Comments |
|---|---|
| <axf:document-info> | Specifies the document information. This information is embedded into the PDF. |
| <axf:footnote-number> | Generates a footnote number. no-LT |
| <axf:footnote-number-citation> | Cites a footnote number. no-LT |
| <axf:form> | Encloses the unit of the form action. V4.2 no-LT |
| <axf:form-field> | Generates a form field. V4.2 no-LT |
| <axf:form-field-option> | Specifies the component elements of the list box, combo box. V4.2 no-LT |
| <axf:output-volume-info> | Outputs PDF in Multi Separate Volume. no-LT |
| <axf:space-after-punctuation> | Specifies the amount of space after the punctuation in European Typography. no-LT |
| <axf:space-before-punctuation> | Specifies the amount of space before the punctuation in European Typography. no-LT |
| <axf:space-between-digit-and-punctuation> | Specifies the amount of space between the digit and the punctuation in European Typography. no-LT |
| <axf:space-between-punctuation-and-digit> | Specifies the amount of space between the punctuation and digit in European Typography. no-LT |
| Property name | Comments |
|---|---|
| axf:action-type | Specifies the action of external link. no-LT |
| axf:alttext | Specifies the alternate text of the image. no-LT |
| axf:annotation-contents | Specifies the content of the annotation. no-LT |
| axf:annotation-color | Specifies the color used for the background of the annotation. no-LT |
| axf:annotation-file-attachment | Specifies the file with which file attachment annotation is related. no-LT |
| axf:annotation-flags | Specifies the flag of the annotation. no-LT |
| axf:annotation-font-family | Specifies the font family of the free text annotation. no-LT |
| axf:annotation-font-size | Specifies the font size of the free text annotation. no-LT |
| axf:annotation-font-style | Specifies whether to make the font of the free text annotation italic. no-LT |
| axf:annotation-font-weight | Specifies the font weight of the free text annotation. no-LT |
| axf:annotation-height | Specifies the height of the annotation. no-LT |
| axf:annotation-icon-name | Specifies the name of the icon used for displaying the annotation. no-LT |
| axf:annotation-open | Specifies the initial state of the annotation. no-LT |
| axf:annotation-position-horizontal | Specifies the horizontal position of the annotation. no-LT |
| axf:annotation-position-vertical | Specifies the vertical position of the annotation. no-LT |
| axf:annotation-text-color | Specifies the color of the free text annotation. no-LT |
| axf:annotation-text-align | Specifies the alignment of the free text annotation. no-LT |
| axf:annotation-title | Specifies the title of the annotation. no-LT |
| axf:annotation-type | Specifies the type of the annotation. no-LT |
| axf:annotation-width | Specifies the width of the annotation. no-LT |
| axf:append-non-end-of-line-characters | Specifies to append the non-end-of-line-characters. no-LT |
| axf:append-non-starter-characters | Specifies to append the non-starter characters. no-LT |
| axf:assumed-page-number | Specifies the assumed page number. |
| axf:assumed-page-number-prefix | Specifies the assumed page number prefix. |
| axf:avoid-widow-words | Specifies the spacing behavior so that the last line of the paragraph does not have only one word left. no-LT |
| axf:background-color | Specifies the background color of a page. |
| axf:background-image | Specifies the background image of a page. |
| axf:background-position-horizontal | Specifies the the horizontal position of a background image of the page. |
| axf:background-position-vertical | Specifies the vertical position of the background image of the page. |
| axf:background-repeat | Specifies whether the background image of the page is repeated, and how. |
| axf:background-content-height | Specifies the content height of a background image. no-LT |
| axf:background-content-type | Specifies the content type of a background image. no-LT |
| axf:background-content-width | Specifies the content width of a background image. no-LT |
| axf:background-scaling | Specifies the scaling ratio of a background image. no-LT |
| axf:base-uri | Specifies the location which becomes the base of relative URI. |
| axf:bleed | Specifies the width of the bleed region for cutting off. no-LT |
| axf:bleed-bottom | Specifies the width of the bleed region on the bottom for cutting off. no-LT |
| axf:bleed-left | Specifies the width of the bleed region on the left for cutting off. no-LT |
| axf:bleed-right | Specifies the width of the bleed region on the right for cutting off. no-LT |
| axf:bleed-top | Specifies the width of the bleed region on the top for cutting off. no-LT |
| axf:bookmark-include | Specifies how to include bookmarks of PDF in Multi Separate Volume. no-LT |
| axf:border-bottom-left-radius | Specifies the bottom left border of the radius. no-LT |
| axf:border-bottom-right-radius | Specifies the bottom right border of the radius. no-LT |
| axf:border-radius | Specifies the border of the radius. no-LT |
| axf:border-top-left-radius | Specifies the top left border of the radius. no-LT |
| axf:border-top-right-radius | Specifies the top right border of the radius. no-LT |
| axf:box-shadow | Specifies the box shadow. no-LT |
| axf:column-count | Specifies the column count of the block. no-LT |
| axf:column-gap | Specifies the column gap of the block. no-LT |
| axf:column-number-format | Specifies the format of column number. |
| axf:column-rule-align | Specifies the alignment of the column rule. |
| axf:column-rule-color | Specifies the color of the column rule. |
| axf:column-rule-display | Specifies whether to also display a rule at the place which does not have columns at the end of a page, etc. |
| axf:column-rule-length | Specifies the length of the column rule. |
| axf:column-rule-style | Specifies the style of the column rule. |
| axf:column-rule-width | Specifies the width of the column rule. |
| axf:crop-offset | Specifies the distance from the physical end to the trim size of the output medium. no-LT |
| axf:crop-offset-bottom | Specifies the distance from the physical bottom edge to the trim size of the output medium. no-LT |
| axf:crop-offset-left | Specifies the distance from the physical left edge to the trim size of the output medium. no-LT |
| axf:crop-offset-right | Specifies the distance from the physical right edge to the trim size of the output medium. no-LT |
| axf:crop-offset-top | Specifies the distance from the physical top edge to the trim size of the output medium. no-LT |
| axf:destination-type | Specifies the type of destination for external links. no-LT |
| axf:diagonal-border-color | Specifies the color of the diagonal border. |
| axf:diagonal-border-style | Specifies the style of the diagonal border. |
| axf:diagonal-border-width | Specifies the width of the diagonal border. |
| axf:except-non-end-of-line-characters | Specifies to except the non-end-of-line-characters. no-LT |
| axf:except-non-starter-characters | Specifies to except the non-starter characters. no-LT |
| axf:field-apply-signature | Specifies whether to apply signature in the signature field. V4.2 no-LT |
| axf:field-button-face | Specifies the caption displayed in the push button field. V4.2 no-LT |
| axf:field-button-face-down | Specifies the caption displayed when pressing the push button. V4.2 no-LT |
| axf:field-button-face-rollover | Specifies the caption displayed when rolling over the push button. V4.2 no-LT |
| axf:field-button-icon | Specifies the icon displayed in the push button field. V4.2 no-LT |
| axf:field-button-icon-down | Specifies the icon displayed when pressing the push button. V4.2 no-LT |
| axf:field-button-icon-rollover | Specifies the icon displayed when rolling over the push button. V4.2 no-LT |
| axf:field-button-layout | Specifies the positioning between the caption and icon displayed in the push button field. V4.2 no-LT |
| axf:field-checked | Specifies the initial state of the check box and the radio button. V4.2 no-LT |
| axf:field-checked-style | Specifies the style of the check box and the radio button. V4.2 no-LT |
| axf:field-default-text | Specifies the text entered into the text field from the beginning. V4.2 no-LT |
| axf:field-description | Specifies the descriptive text of the filed. V4.2 no-LT |
| axf:field-editable | Specifies whether the value can be edited with the combo box. V4.2 no-LT |
| axf:field-maxlen | Specifies the maximum number of the characters which can be entered into the text field. V4.2 no-LT |
| axf:field-multiline | Specifies whether the text field is a single-line enterable field or a multi-line enterable field. V4.2 no-LT |
| axf:field-multiple | Specifies whether multiple items can be chosen in the list box. V4.2 no-LT |
| axf:field-name | Specifies the field name. V4.2 no-LT |
| axf:field-password | Specifies whether the text field requires the password or not. V4.2 no-LT |
| axf:field-readonly | Specifies whether the field is read-only or not. V4.2 no-LT |
| axf:field-required | Specifies whether the filed is enter-required or not. V4.2 no-LT |
| axf:field-scroll | Specifies whether the text field is scrollable or not. V4.2 no-LT |
| axf:field-submit-coordinates | Specified whether to send out the coordinates of the mouse when submitting a form field. V4.2 no-LT |
| axf:field-submit-method | Specifies the way to send the information when submitting a form field. V4.2 no-LT |
| axf:field-top-index | Specifies the first selected item in the list box, combo box. V4.2 no-LT |
| axf:field-type | Specifies the field type. V4.2 no-LT |
| axf:field-value | Specified the value used when submitting a form field, etc. V4.2 no-LT |
| axf:footnote-align | Specifies the alignment of the footnote. no-LT |
| axf:footnote-keep | Specifies whether to arrange a footnote and an anchor in the same page. V4.1MR2 no-LT |
| axf:footnote-number-format | Specifies the format of footnote number. no-LT |
| axf:footnote-number-initial | Specifies the initial footnote number. no-LT |
| axf:footnote-number-reset | Resets the footnote numbering. no-LT |
| axf:footnote-position | Specifies whether to layout the footnotes in each column or not. |
| axf:footnote-stacking | Specifies the method to layout the footnote. no-LT |
| axf:hanging-punctuation | Specifies whether to wrap punctuation characters or not. no-LT |
| axf:hyphenation-minimum-character-count | Specifies the minimum number of the character to hyphenate. no-LT |
| axf:hyphenation-zone | Limits the range where a hyphenation is available. no-LT |
| axf:initial-volume-number | Specifies the initial volume number of PDF in Multi Separate Volume. no-LT |
| axf:japanese-glyph | Specifies the glyph of Japanese Kanji. V4.2 no-LT |
| axf:justify-nbsp | Specifies whether to include NON-BREAKING SPACE for justification or not. |
| axf:kerning-mode | Specifies whether to process the kerning. no-LT |
| axf:line-break | Specifies the method of line breaking. no-LT |
| axf:leader-expansion | Specifies whether to expand leaders forcibly. no-LT |
| axf:ligature-mode | Specifies whether to process the ligature. V4.2 no-LT |
| axf:line-number | Specifies whether to show line numbers. no-LT |
| axf:line-number-background-color | Specifies the background color of line numbers. no-LT |
| axf:line-number-color | Specifies the color of line numbers. no-LT |
| axf:line-number-display-align | Specifies the alignment of line numbers in the block-progression-direction. no-LT |
| axf:line-number-font-family | Specifies the font family of line numbers. no-LT |
| axf:line-number-font-size | Specifies the font size of line numbers. no-LT |
| axf:line-number-font-style | Specifies whether to make the font style italic. no-LT |
| axf:line-number-font-weight | Specifies the font weight of line numbers. no-LT |
| axf:line-number-format | Specifies the format of line numbers. no-LT |
| axf:line-number-initial | Specifies the line number of the first line. no-LT |
| axf:line-number-interval | Specifies the spacing between line numbers. no-LT |
| axf:line-number-offset | Specifies the offset of line numbers. no-LT |
| axf:line-number-position | Specifies the position of line numbers. no-LT |
| axf:line-number-reset | Reset line numbering. no-LT |
| axf:line-number-start | Specifies the starting line numbers. no-LT |
| axf:line-number-text-align | Specifies the alignment of line numbers in the line area. V4.2 no-LT |
| axf:line-number-text-decoration | Specifies the text decoration of line numbers. no-LT |
| axf:line-number-width | Specifies the width of line numbers. V4.2 no-LT |
| axf:number-type | Specifies whether to output the page number or to output the column number. |
| axf:origin-id | Specifies the origin of the page number. |
| axf:outline-color | Specifies the color of the title for the PDF bookmark. no-LT |
| axf:outline-expand | Specifies whether to display the lower hierarchy or not. |
| axf:outline-external-destination | Sets the external link in the PDF bookmark. no-LT |
| axf:outline-font-style | Specifies the font style of the title for the PDF bookmark. no-LT |
| axf:outline-font-weight | Specifies the font weight of the title for the PDF bookmark. no-LT |
| axf:outline-group | Groups bookmark items of PDF, and outputs them collectively. |
| axf:outline-internal-destination | Sets the internal link in the PDF bookmark. no-LT |
| axf:outline-level | This indicates the hierarchy level of bookmark items. |
| axf:outline-title | A string which appears as a title for bookmarks. |
| axf:output-volume-break | Separates the PDF in multi volume. no-LT |
| axf:output-volume-filename | Specifies the document file name in multi volume. no-LT |
| axf:overflow-condense | Specifies how to condense the overflowed text within the region. |
| axf:overflow-condense-limit-font-size | Specifies the minimum font size when axf:overflow-condense is specified. no-LT |
| axf:overflow-replace | Specifies the alternative character string of the overflow text. |
| axf:page-number-prefix | Sets the prefix of page number. |
| axf:physical-page-number | Gets the physical page number. |
| axf:printer-duplex | Specifies to print in duplex mode. no-LT |
| axf:printer-marks | Specifies the printer marks, such as a crop mark. no-LT |
| axf:printer-marks-line-color | Specifies the line color of the printer marks. no-LT |
| axf:printer-marks-line-length | Specifies the line length of the printer marks. no-LT |
| axf:printer-marks-line-width | Specifies the line width of the printer marks. no-LT |
| axf:printer-marks-zero-margin | Specifies the margin between the page and the printer marks when bleed is 0. no-LT |
| axf:printer-bin-selection | Selects the printer tray. no-LT |
| axf:punctuation-spacing | Specifies the width of adjacent full width punctuations. no-LT |
| axf:punctuation-trim | Specifies whether to treat full width punctuations as half width. no-LT |
| axf:repeat-cell-content-at-break | Specifies whether to copy the contents of a cell when a cell breaks. no-LT |
| axf:repeat-page-sequence-master | Specifies the repetition of the page sequence. no-LT |
| axf:reverse-diagonal-border-color | Specifies the color of the reverse diagonal border. |
| axf:reverse-diagonal-border-style | Specifies the style of the reverse diagonal border. |
| axf:reverse-diagonal-border-width | Specifies the width of the reverse diagonal border. |
| axf:revision-bar-color | Specifies the color of Revision Bar. |
| axf:revision-bar-offset | Specifies the offset of Revision Bar. |
| axf:revision-bar-position | Specifies the position of Revision Bar. |
| axf:revision-bar-style | Specifies the style of Revision Bar. |
| axf:revision-bar-width | Specifies the width of Revision Bar. |
| axf:soft-hyphen-treatment | Specifies to output SOFT HYPHEN. |
| axf:suppress-duplicate-footnote | Specifies to delete the duplicated footnotes. |
| axf:suppress-duplicate-page-number | Specifies to delete the duplicated page numbers. |
| axf:suppress-if-first-on-page | Specifies whether to suppress the block at the beginning of a page. no-LT |
| axf:text-align-first | Specifies the text alignment of the first line. |
| axf:text-autospace | Specifies whether to add space surrounding ideographic glyphs or not. no-LT |
| axf:text-autospace-width | Specifies the width for axf:text-autospace. no-LT |
| axf:text-kashida-space | Specifies the percentage of Kashida in Arabic. no-LT |
| axf:text-line-color | Specifies the color of underline, strikethrough, and overline. |
| axf:text-line-style | Specifies the style of underline, strikethrough, and overline. |
| axf:text-line-width | Specifies the width of underline, strikethrough, and overline. |
| axf:text-underline-position | Specifies the position of underline. |
| axf:vertical-underline-side | Specifies the side for underline in vertical writing-mode. no-LT |
| axf:word-break | Specifies whether to enable line breaking between word. no-LT |
| Function name | Comments |
|---|---|
| rgb-icc | Extends the rgb-icc function. |
| Property name | Comments |
|---|---|
| border-style border-*-style |
Extended the dot-dash, dot-dot-dash, and wave properties defined in CSS3.
These styles are preferred in the following order:
|
| font-stretch | Extends the value of the font-stretch property. |
| force-page-count | Extends the value of the force-page-count property. |
| format | Extends the value of the format property. |
| internal-destination | Extends the value of the internal-destination property. no-LT |
| overflow | Extends the value of the overflow property. |
| text-align | Extends the value of the page-position property. V4.2 |
In the XSL Specification, the width of the padding or the border specified to fo:region-body or fo:region-before, etc. should be zero. XSL Formatter V4.2 can accept and process values other than zero. The following is sample code.
In the XSL Specification, the value of the <script> specified in the script property is supposed to be regulated in ISO 15924. XSL Formatter V4.2 assigns a script called Math to mathematical operators, such as U+2200 to U+22FF for the accommodation of MathML. V4.2
This section describes how to embed document information into PDF file.
A similar function is equipped in XSL1.1. Please make use of fo:bookmark.
Document information such as an author and title can be embedded in the PDF. XSL Formatter V4.2 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.
Specifies the document information. The information is not included in the generated areas. For example, this information is embedded into PDF.
None.
<!ELEMENT axf:document-info EMPTY> <!ATTLIST axf:document-info name CDATA #REQUIRED 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:
Specifies the title of the document.
Specifies the subtitle of the document.
Specifies the author of the document.
Enumerates the comma-deliminated keyword.
Specifies the method of the display when the document is opened. The following one can be specified.
UseOC can be specified for PDF1.5 or later. The default is UseOutlines when the outline exists.
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. Refer to Making Link too.
Action with a name and JavaScript can also be specified at this time.
# 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
EMPTY
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<axf:document-info name="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 output, it is specified for the first separate volume.
With XSL Formatter V4.2 Lite, axf:document-info specified to fo:page-sequence is ignored.
XSL Formatter V4.2 makes it possible to out put PDF in Multi Separate Volume. These functions are not available with XSL Formatter V4.2 Lite.
Makes it possible to output PDF in separate volume per fo:page-sequence when outptting the formatted result.
None.
<!ELEMENT axf:output-volume-info EMPTY> <!ATTLIST axf:output-volume-info initial-volume-number NUMBER "1" format CDATA "1" bookmark-include (first|all|separate) separate >
The axf:output-volume-info is placed as a child of fo:root. If it comes before fo:page-sequence appears, it is possible to put it in an arbitrary position under a child of fo:root.
EMPTY
<axf:output-volume-info initial-volume-number="2" format="-1" bookmark-include="separate" /> <fo:page-sequence> PAGE-SEQUENCE-1 ... </fo:page-sequence> <fo:page-sequence> PAGE-SEQUENCE-2 ... </fo:page-sequence> <fo:page-sequence axf:output-volume-break="true"> PAGE-SEQUENCE-3 ... </fo:page-sequence>
Effective only when outputting to files. It’s not available for printing or stream output. At that time the file name should be given by GUI, command line parameter or etc. The file names of separate volumes are given automatically based on the output file names. This process is done by inputting the strings formatted by the format property right before the file extension of the output file name. In the above example, when document.pdf is given to the file name, PAGE-SEQUENCE-1 and PAGE-SEQUENCE-2 are outputted to document-2.pdf, PAGE-SEQUENCE-3 is outputted to document-3.pdf.
The numeric value applied to the format property can be given by the axf:initial-volume-number property as the initial value. The format property is the same as "7.26.1. format" in the XSL-FO specification.
The volume is separated by the axf:output-volume-break property specified to fo:page-sequence. If the axf:output-volume-filename property is specified, only the separated volumes can be outputted with the specified file name.
The book mark of PDF in multi separate volume can be set by the axf:bookmark-include from the following options.
The following conditions are required for the actual separate volume.
| GUI | Multi Volume should be checked in the PDF Output Dialog. |
|---|---|
| Command-line | The –multivol parameter should be specified. |
| .NET | true should be specified to the MultiVolume property. |
| COM | true should be specified to the MultiVolume property. |
| Java | The separate volume should be specified by XfoObj::setMultiVolume(). |
| C++/C | The separate volume should be specified by XfoObj::setMultiVolume(). |
Specifies how to include bookmarks in multi separate volume. no-LT
| Value: | first | all | separate |
| Initial: | separate |
| Applies to: | axf:output-volume-info |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Adds a bookmark to the first separate volume.
Adds bookmarks to all the separate volumes.
Adds each bookmark to each separate volume. Bookmarks are added to the volume where axf:outline-level="1" appears. The bookmark that goes across the volume is added to the previous volume. For that reason, the external link to the other volume may be included even though axf:bookmark-include="separate" is specified.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the initial volume number in multi separate volume. no-LT
| Value: | <number> |
| Initial: | 1 |
| Applies to: | axf:output-volume-info |
| Inherited: | no |
| Percentages: | N/A |
This value is applied for the format property and utilized for the PDF file name to output. In the following example, the file name of the separate volume is document-2.pdf, document-3.pdf, document-4.pdf,...
<axf:output-volume-info initial-volume-number="2" format="-1" />
This property is not available with XSL Formatter V4.2 Lite.
Separates the file in multi volume. no-LT
| Value: | true | false |
| Initial: | false |
| Applies to: | fo:page-sequence |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Separates the volume newly from this fo:page-sequence.
Do not separates the volume newly from this fo:page-sequence.
Specifies axf:output-volume-break="true" to fo:page-sequence where you want to start separating the volume. The document number increases one by one. When separating the volume, axf:output-volume-break="true" is regarded as always being specified to the first fo:page-sequence. If axf:output-volume-break="false" is specified explicitly, it is ignored.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the document file name in multi separate volume. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | fo:page-sequence |
| Inherited: | no |
| Percentages: | N/A |
If nothing specified, the automatic file name using the format property is adopted. If this property is specified, the specified name is adopted. This property is effective only with the top fo:page-sequence or with the fo:page-sequence where axf:output-volume-break="true" is specified.
In the following example, suppose that if document.pdf is specified as the file name of the PDF output, the separated file names will be document-2.pdf, chapterX.pdf, document-4.pdf,...
<axf:output-volume-info initial-volume-number="2" format="-1" /> <fo:page-sequence> ... </fo:page-sequence> <fo:page-sequence axf:output-volume-break="true" axf:output-volume-filename="ChapterX.pdf"> ... </fo:page-sequence> <fo:page-sequence axf:output-volume-break="true"> ... </fo:page-sequence>
The original PDF file name cannot be omitted even though axf:output-volume-filename is specified to all the fo:page-sequence. This property is not available with XSL Formatter V4.2 Lite.
XSL Formatter V4.2 provides the extension for adjusting the amount of space before and after the punctuation in European Typography. These functions are not available with XSL Formatter V4.2 Lite. no-LT
Specifies the amount of space after the punctuation.
Specifies the amount of space before the punctuation.
Specifies the amount of space between the digit and the punctuation.
Specifies the amount of space between the punctuation and the digit.
These extension elements are all empty element and can be put on the right under fo:declarations. The area is not generated. The following properties can be specified.
Specifies the language code (RFC3066). It is not possible to omit it.
| Value: | <language> |
| Initial: | N/A |
| Inherited: | no |
| Percentages: | N/A |
Specifies the amount of space. Specification is invalid when 0 or less.
| Value: | <length> | <percentage> | figure | punctuation | thin | hair |
| Initial: | N/A |
| Inherited: | no |
| Percentages: | refer to the font size |
Values have the following meanings.
Indicates the same amount as U+2007.
Indicates the same amount as U+2008.
Indicates the same amount as U+2009.
Indicates the same amount as U+200A.
Specifies the code point to be applied.
| Value: | <string> |
| Initial: | empty string |
| Inherited: | no |
| Percentages: | N/A |
language and space are applied to all the specified code points.
For instance, the following would be specified to format French.
These settings for European Typography can also be specified by the Option Setting File. The setting in FO overwrites it.
This section describes how to create bookmark and link within the PDF file.
A PDF document has a function called bookmarks. Bookmarks in Adobe Acrobat or Reader consist of a tree-structured hierarchy which serve as a "visual table of contents," allowing the user to navigate to the target place by clicking on items.
XSL Formatter V4.2 generates bookmarks automatically by adding the extended properties to the objects to have bookmarks.
The following sample illustrates how to create the bookmark of the above picture.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
...
<fo:block axf:outline-level="1"
axf:outline-expand="false"
axf:outline-title="Colophon">
...
</fo:block>
<fo:block axf:outline-level="1"
axf:outline-expand="false"
axf:outline-title="Table of Contents">
...
</fo:block>
<fo:block axf:outline-level="1"
axf:outline-expand="true"
axf:outline-title="1. Introduction and Overview">
<fo:block axf:outline-level="2"
axf:outline-expand="true"
axf:outline-title="1.1. Processing a Stylesheet">
<fo:block axf:outline-level="3"
axf:outline-expand="false"
axf:outline-title="1.1.1. Tree Transformations">
...
</fo:block>
<fo:block axf:outline-level="3"
axf:outline-expand="false"
axf:outline-title="1.1.2. Formatting">
...
</fo:block>
</fo:block>
<fo:block axf:outline-level="2"
axf:outline-expand="false"
axf:outline-title="1.2. Benefits of XSL">
...
</fo:block>
</fo:block>
<fo:block axf:outline-level="1"
axf:outline-expand="false"
axf:outline-title="2. XSL Transformation">
...
</fo:block>
...
The axf:outline-expand specifies whether to display the lower hierarchy of bookmark items or not.
| Value: | true | false |
| Initial: | true |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
True specifies to display the lower hierarchy in the expanded state. False specifies to display in the collapsed state.
The axf:outline-group groups bookmark items, and outputs them collectively.
| Value: | <string> |
| Initial: | empty string |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
If this property is omitted or specifies empty string, bookmark items are not grouped. If this specifies any string, the string is used as the name of group. The group with the same name is outputted collectively. The non-grouped bookmark is outputted as the group without the group name.
The axf:outline-level indicates the hierarchy level of bookmark items.
| Value: | <number> |
| Initial: | 0 |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
The <number> must be a non-negative integer. Initial value is zero and it means that bookmarks should not be created. The highest level of bookmarks is 1 and it becomes 2 or more according to the hierarchy level of the bookmarks.
The axf:outline-title specifies the string which appears as a title of bookmarks.
| Value: | <string> |
| Initial: | empty string |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
If this property is omitted or has an empty string, the text of the object to which the property is added will become the title. In other words, the following two samples create the same bookmark.
The axf:outline-color specifies the color which appears as a title of bookmarks. no-LT
| Value: | <color> |
| Initial: | the value of the 'color' property |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is effective with PDF 1.4 or later. This property is not available with XSL Formatter V4.2 Lite.
The axf:outline-font-style specifies the font style which appears as a title of bookmarks. no-LT
| Value: | normal | italic |
| Initial: | normal |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Specifies normal style.
Specifies italic.
This property is effective with PDF 1.4 or later. This property is not available with XSL Formatter V4.2 Lite.
The axf:outline-font-weight specifies the font weight which appears as a title of bookmarks. no-LT
| Value: | normal | bold |
| Initial: | normal |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Specifies normal weight.
Specifies bold weight.
This property is effective with PDF 1.4 or later. This property is not available with XSL Formatter V4.2 Lite.
PDF links can be created easily by using fo:basic-link.
PDF links are classified either as an internal link to a specified position in the PDF document, or as a external link to an external document. The internal-destination property of fo:basic-link indicates a link to a position in the same document. The external-destination property indicates a link to an external document. Below are the examples of both.
The external link specified by the relative address is transformed into either 'Open the file' or 'World Wide Web link' by the use-launch-for-relative-uri property in PDF Output Setting. The external link specified by the absolute address is always transformed into 'World Wide Web link'.
Furthermore, it's possible to specify professional links as follows. For further understanding see also "PDF Reference Manual" by Adobe Systems Incorporated. The professional links are not available with XSL Formatter V4.2 Lite.
The setting of external-destination for the external link in PDF conforms to the following specification of PDF parameters. Not all the parameters are effective with XSL Formatter V4.2. The invalid parameters are ignored.
This specification provides the following examples.
Only the following parameters are effective with XSL Formatter V4.2. The case sensitivity is ignored.
For example, it's invalid to specify fitH, fitR and fitBH for the external link. These are effective only with the internal link. If the required values for the PDF parameters are omitted in fitH, etc., the values are accounted as 0.
With the external link for PDF, it's possible to specify whether to open a new window by the show-destination property. A link destination except PDF is invalid. If show-destination="new" is specified, a new window will be opened and PDF will be displayed on the window. If show-destination="replace" is specified, a new window will not be opened but PDF will be displayed in the current window. When nothing specified, it depends on the operation of the PDF viewer application. Although it is defined as "replace" in the XSL-FO specification when the property is omitted, XSL Formatter V4.2 complies with the specification a little differently. show-destination property is invalid under the following conditions.
XSL Formatter V4.2 provides the following extension properties for the professional link.
Specifies the action of external link or form action. no-LT
| Value: | gotor | launch | uri | reset | submit | auto |
| Initial: | auto |
| Applies to: | fo:basic-link, axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Opens the link destination by the "GoToR" action as PDF. The URI of the destination is regarded as PDF.
Opens the link destination by the "Launch" action as the file.
Opens the link destination by the "URI" action as URI (World Wide Web).
Resets a form filed as a form action and can be specified to axf:form-field.
Submits a form filed as a form action and can be specified to axf:form-field.
Dependent on the system setting.
When the link destination is not a local file, such as http:, the action type is "URI" at any time. When axf:action-type="auto" specified, the external link specified by the relative address is transformed into either 'Open the file' or 'World Wide Web link' by the use-launch-for-relative-uri property in PDF Output Setting. The external link specified by the absolute address is always transformed into 'World Wide Web link'. This property is not available with XSL Formatter V4.2 Lite.
Specifies the type of destination for the external link. These are the types of destination for PDF as the external link. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | block level formatting object |
| Inherited: | no |
| Percentages: | N/A |
The destination type has the following options. If nothing specified, it's accounted as axf:destination-type="xyz-top". The case sensitivity is ignored.
| Destination Type of PDF | How to specify axf:destination-type | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| [page /XYZ left top zoom] | XSL Formatter V4.2 calculates the value of left/top. However it's possible to specify null or non-null explicitly. The user can specify the arbitrary value for zoom.
|
||||||||||
| [page /Fit] |
|
||||||||||
| [page /FitH top] | XSL Formatter V4.2 calculates the value of top. Effective only to specify in the internal link.
|
||||||||||
| [page /FitV left] | XSL Formatter V4.2 calculates the value of left.
|
||||||||||
| [page /FitR left bottom right top] | XSL Formatter V4.2 calculates the value of left/bottom/right/top. Effective only to specify in the internal link.
|
||||||||||
| [page /FitB] |
|
||||||||||
| [page /FitBH top] | XSL Formatter V4.2 calculates the value of top. Effective only to specify in the internal link.
|
||||||||||
| [page /FitBV left] | XSL Formatter V4.2 calculates the value of left.
|
This property is not available with XSL Formatter V4.2 Lite.
Sets the external link in the PDF bookmark. no-LT
| Value: | <uri-specification> |
| Initial: | empty string |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Specifies the URI of the link destination.
This property is not available with XSL Formatter V4.2 Lite.
Sets the internal link in the PDF bookmark. no-LT
| Value: | empty string | <idref> | <number-with-fragment> |
| Initial: | empty string |
| Applies to: | block-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Specifies the ID of the link destination.
Specifies the page number of the link destination. This string is simpe numeric characters or the following string that combines numeric characters and a fragment with #. Refer to Making Link for the fragment.
The page number also can be specified in the fragment.
When the page number is not specified, it is usually regarded as the 1st page. However, when the top position is specified, it is regarded as the head of the page of a block where axf:outline-internal-destination is contained. For example, it is specified as follows.
This property is not available with XSL Formatter V4.2 Lite.
When specifying the ID in the external link, the type of the destination should be given to the ID of the link destination. Nameddest is only effective as the parameter in the URI. The type of the destination can be specified to the link destination.
<fo:basic-link external-destination="http://mydocs/doc.pdf#nameddest=Chapter6"
axf:action-type="gotor">
<fo:block id="Chapter6" axf:destination-type="xxxx">
When specifying the ID in the internal link, the type of the destination should be given to the ID of the link destination as well as the external link.
<fo:basic-link internal-destination="Chapter6">
<fo:block id="Chapter6" axf:destination-type="xxxx">
The page number can be accounted by the page parameter in the URI. If both page and nameddest are specified, nameddest takes priority. When specifying the page number, the destination information cannot be set to the link destination. Therefore the type of the destination is given by reading the parameter in the URI. The unreadable parameter is discarded.
<fo:basic-link external-destination="http://mydocs/doc.pdf#page=72&view=fitH,100"
axf:action-type="gotor">
When neither page nor nameddest are included in the parameter of the URI, it's accounted as page=1. The page number is accounted as physical in PDF.
Adds extension in order to specify the page number to the value of internal-destination.
<fo:basic-link internal-destination="72">
The type of the destination can be specified by adding the parameter of the external link URI.
<fo:basic-link internal-destination="72#view=fitH,100">
The page number is accounted as physical in PDF. If only the page number is specified, the type of the destination is accounted as view=fit.
Specify the axf:outline-external-destination property as follows in order to specify the external link to the bookmark.
<fo:block axf:outline-level="1"
axf:outline-title="Chapter 6"
axf:outline-external-destination="http://mydocs/doc.pdf#nameddest=Chapter6"
axf:action-type="gotor"
show-destination="new">
At that time this bookmark becomes independent of the block such as fo:block, etc., which the bookmark belongs to.
Specify the axf:outline-internal-destination property as follows in order to specify the internal link to the bookmark.
<fo:block axf:outline-level="1"
axf:outline-title="Chapter 6"
axf:outline-internal-destination="Chapter6">
At that time this bookmark becomes independent of the block such as fo:block, etc., which the bookmark belongs to.
Annotations can be added to PDF with XSL Formatter V4.2. See also "PDF Reference Manual" for more details. Annotations which can be specified here are a part of those defined in PDF reference manual. This function is not available with XSL Formatter V4.2 Lite.
Specifies the type of the annotation. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Any of the following types of the annotation can be specified.
No annotations.
Text annotation.
Free text annotation.
Rubber stamp annotation.
File attachment annotation.
Charcter strings are case insensitive.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the title of the annotation. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the content of the annotation. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Specifies the character strings to be displayed when any of the following types of the annotations (axf:annotation-type) is specified.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the color used for the background of the annotation. no-LT
| Value: | <color> | none |
| Initial: | none |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the flag of the annotation. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Specifies the following character sequences by enumlating using the white space. They are case insensitive.
See also "PDF Reference Manual" to learn more.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the initial state of the annotation. no-LT
| Value: | true | false |
| Initial: | false |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Specifies whether it is displayed in the open state when the type of the annotation (axf:annotation-type) is as follows.
Values have the following meanings.
Displays the annotation in the open state.
Displays the annotation in the closed state.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the name of the icon used for displaying the annotation. no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
Although arbitrary name can be specified for the icon used for the display of annotations, whether it can be displayed or not depends on the viewer application of a document. The annotation type (axf:annotation-type) snows the standard name which can be specified.
Standard names are as follows:
Empty string is regarded as "None".
Standard names are as follows:
Empty string is regarded as "Draft".
Standard names are as follows:
Empty string is regarded as "PushPin".
This property is not available with XSL Formatter V4.2 Lite.
Specifies the horizontal position of the annotation. no-LT
| Value: | <length> |
| Initial: | 0pt |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
The position specified is the distance from the left edge of the region and is used for the position of pop-up or icons and the position of rubber stamp annotations.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the vertical position of the annotation. no-LT
| Value: | <length> |
| Initial: | 0pt |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
The position specified is the distance from the top edge of the region and is used for the position of pop-up or icons and the position of rubber stamp annotations.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the width of the annotation. no-LT
| Value: | <length> | auto |
| Initial: | auto |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is used for the width of pop-up and the width of rubber stamp annotations.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the height of the annotation. no-LT
| Value: | <length> | auto |
| Initial: | auto |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is used for the height of pop-up and the height of rubber stamp annotations.
This property is not available with XSL Formatter V4.2 Lite.
Specifies the font family of the free text annotation. no-LT
| Value: | <string> |
| Initial: | depends on user agent |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the font size of the free text annotation. no-LT
| Value: | <absolute-size> | <relative-size> | <length> | <percentage> |
| Initial: | depends on user agent |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | refer to the font size |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the font weight of the free text annotation. no-LT
| Value: | normal | bold |
| Initial: | normal |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies whether to make the font of the free text annotation italic. no-LT
| Value: | normal | italic |
| Initial: | normal |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the color of the free text annotation. no-LT
| Value: | <color> |
| Initial: | depends on user agent |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the alignment of the free text annotation. no-LT
| Value: | left | center | right |
| Initial: | left |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
Specifies the file with which file attachment annotation is related. no-LT
| Value: | <uri-specification> |
| Initial: | empty string |
| Applies to: | all block-level and inline-level formatting objects |
| Inherited: | no |
| Percentages: | N/A |
This property is not available with XSL Formatter V4.2 Lite.
It's possible to create PDF forms with XSL Formatter V4.2. Forms consist of the field to fill in the text and buttons, etc. Moreover, the action accompanied by push-button can be specified.
Forms can be specifided by describing <axf:form-field> inside <axf:form>.
<axf:form
external-destination="http://www.antenna.co.jp/form-test.cgi"
field-submit-method="post"
field-submit-coordinates="true">
<fo:block>
Submit:
<axf:form-field
field-type="button"
field-name="SubmitButton"
action-type="submit"
field-button-layout="caption"
field-button-face="Submit!"
width="5em"
background-color="#eee"
border="2px silver outset"
/>
</fo:block>
<fo:block>
Text Field:
<axf:form-field
field-type="text"
field-name="InputText"
field-default-text="Input text here!"
field-multiline="false"
field-scroll="true"
field-maxlen="32"
width="10em"
height="1.2em"
background-color="#ff8"
border="1pt silver inset"
/>
</fo:block>
</axf:form>
When <axf:form-field> is not inside of <axf:form> and action-type is "submit" or "reset", these does not function. <axf:form-field> other than these will work fine regardless of <axf:form>.
This function is not available with XSL Formatter V4.2 Lite.
Encloses the unit of the form action. V4.2 no-LT
Generates and returns a block-area.
( %block; )*
Generates a form field. V4.2 no-LT
Generates and returns a single normal inline-area.
Specifies the component elements of the list box, combo box. V4.2 no-LT
No areas generated.
( #PCDATA )*
Specifies the field type. V4.2 no-LT
| Value: | text | button | checkbox | radio | listbox | combobox | signature |
| Initial: | N/A, value is required |
| Applies to: | axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
Generates the text field.
Generates the push button field.
Generates the check box field
Generates the radio button field
Generates the list box field
Generates the combo box field
Generates the digital signature field
Specifies the field name. V4.2 no-LT
| Value: | <string> |
| Initial: | N/A, value is required |
| Applies to: | axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Specifies the descriptive text of the filed. V4.2 no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Specified the value used when submitting a form field, etc. V4.2 no-LT
| Value: | <string> |
| Initial: | empty string |
| Applies to: | axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Specifies whether the field is read-only or not. V4.2 no-LT
| Value: | true | false |
| Initial: | false |
| Applies to: | axf:form-field |
| Inherited: | no |
| Percentages: | N/A |
Values have the following meanings.
The field is read-only.
The field is not read-only.
Specifies whether the filed is enter-required or not. V4.2 no-LT
| Value: |