AH Formatter V7.0 is able to treat two facing pages (a two-page spread) as a single unit, and you can define spread regions that span across the two pages. You can also define a single background for the two pages.
The requirement for formatting facing pages as a two-page spread appears in:
Only some documents need spreads, but uses for spreads include:
The Spread Page Master Extension adds the following two Formatting Objects:
FO | Definition |
---|---|
<axf:spread-page-master> | Defines the spread. |
<axf:spread-region> | Region that can span two pages. |
Two-page spreads are typically exceptions to normal formatting, so <axf:spread-page-master> refers to other page masters for the definitions of the two pages' sizes and non-spread regions. When an <axf:spread-region> intersects an <fo:region-body> from one of the page masters, the <fo:region-body> is resized to be a smaller, rectangular region. When an <axf:spread-region> covers an <fo:region-body> from one of the page masters, the <fo:region-body> is dropped from the spread.
CAUTION: | Spread Page Master Extension is not effective with AH Formatter V7.0 Lite. |
---|
Specifies a two-page spread.
axf:spread-page-master is used in page master selection in the same way as fo:simple-page-master, but it always causes a multiple of two pages to be generated. You must ensure that the pairs of pages occur as two-page spreads. Properties that can help enforce this are maximum-repeats, initial-page-number, and force-page-count.
If the axf:spread-region children generate all regions on the pages (for example, the spread pages are a multi-page, double-wide table) but you do not know how many pairs of pages the spread content will use generate, then either the axf:spread-page-master should be the last page master in the fo:page-sequence-master or the content of the spread pages should be in a nested fo:page-sequence that uses only the axf:spread-page-master.
Generates no area directly. It is used in the generation of pages by an fo:page-sequence.
Specifies a region in a two-page spread.
Used to generate one region-viewport-area and one region-reference-area whenever its parent <axf:spread-page-master> is used to generate a page.
Master name of the page master for the left page of a two-page spread.
Value: | <name> |
Initial: | N/A, a value is required |
Applies to: | axf:spread-page-master |
Inherited: | no |
Percentages: | N/A |
Values have the following meanings.
The name must refer to a master-name that exists within the document.
axf:left-page-master-reference refers to the page master that defines the page size and the non-spread regions for the left-hand page of a two-page spread.
Master name of the page master for the right page of a two-page spread.
Value: | <name> |
Initial: | N/A, a value is required |
Applies to: | axf:spread-page-master |
Inherited: | no |
Percentages: | N/A |
Values have the following meanings.
The name must refer to a master-name that exists within the document.
axf:right-page-master-reference refers to the page master that defines the page size and the non-spread regions for the right-hand page of a two-page spread.
The following example shows two pages generated using an axf:spread-page-master. The definitions of the page sizes and non-spread regions are from the “left” and “right” fo:simple-page-master that are referred to from the “spreadpm” axf:spread-page-master. The axf:spread-page-master defines a “top” axf:spread-region that spans across the two pages of the spread. In this example, the “top” region contains a title. The content of the “xsl-region-body” flow generates areas in the body regions defined by the fo:region-body in the two fo:page-sequence-master.