This example assembles three PDF documents that have two pages each. Because the PageLabel element is specified separately for each source document, numbering begins at "1" for each document. This is equivalent to the
start attribute being set to 1, its default value.
<PDF result="doc4">
<PDF source="doc1">
<PageLabel prefix="Chapter 1 - "/>
</PDF>
<PDF source="doc2">
<PageLabel prefix="Chapter 2 - "/>
</PDF>
<PDF source="doc3">
<PageLabel prefix="Appendix A - "/>
</PDF>
</PDF>
In the next example, the PageLabel element is a child of the
PDF result element. Therefore, the page label style, with the prefix "page ", applies to the entire result document. The page number starts with 1 and increments throughout the document.
<PDF result="doc4">
<PageLabel prefix="page "/>
<PDF source="doc1"/>
<PDF source="doc2"/>
<PDF source="doc3"/>
</PDF>
<PDF result="doc4">
<PDF source="doc1">
<PageLabel prefix="page "/>
</PDF>
<PDFGroup>
<PageLabel mode="Continue"/>
<PDF source="doc2"/>
<PDF source="doc3"/>
</PDFGroup>
</PDF>
The following examples illustrate several page labeling options using the same assembled documents. The source documents are a title page, two content sections, and an advertising supplement inserted between the two sections.
In the first example, the goal is to number FirstHalf and SecondHalf consecutively and number AdSection independently. To accomplish this, the
PageLabel element that is a child of the
PDF result defines a global page label format, which applies only to the pages in FirstHalf and SecondHalf. Those pages start with "1" (by default) and are numbered consecutively, ignoring any intervening pages in a lower scope. The
PageLabel elements in Title and AdSection apply only to those source documents and are defined to preserve the original page labels.
<PDF result="doc1">
<PageLabel format="Decimal"/>
<PDF source="Title">
<PageLabel mode="Preserve"/>
</PDF>
<PDF source="FirstHalf"/>
<PDF source="AdSection">
<PageLabel mode="Preserve"/>
</PDF>
<PDF source="SecondHalf"/>
</PDF>
The next example uses the same documents and also preserves the page labels for Title and AdSection. However, there is no global page label format; therefore, the pages in FirstHalf and SecondHalf are given the ordinal page number as the page label.
<PDF result="doc1">
<PDF source="Title">
<PageLabel mode="Preserve"/>
</PDF>
<PDF source="FirstHalf"/>
<PDF source="AdSection">
<PageLabel mode="Preserve"/>
</PDF>
<PDF source="SecondHalf"/>
</PDF>
More complicated page labeling can require using intermediate results. For example, to have labeling similar to the previous example but starting the numbering for FirstHalf with "1", use the following DDX.
<PDF result="TempDoc" return="false">
<PDF source="FirstHalf"/>
<PDF source="AdSection"/>
<PDF source="SecondHalf"/>
</PDF>
<PDF result="doc3">
<PDF source="Title"/>
<PDF source="TempDoc"/>
</PDF>
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/assemblePDFPage_labels.104.3.html