Take a survey

Developing Applications Using APIs > Assembling PDF Documents > Assembling and Disassembling PDF Documents > Specifying source documents > Page ranges

Page ranges
You specify the range of pages you want to include for each source document by setting the pages attribute of each PDF source element. If this attribute is not set, all pages are included by default. Page ranges can include one or more of the following items:
The keyword last, referring to the last page number.
The keyword penultimate, referring to the next-to-last page number.
Note: Spaces are allowed in page ranges.
Example: Specifying page ranges
<PDF source="doc1" pages="5"/> <!--page 5 only-->
<PDF source="doc1" pages="2-4"/> <!--pages 2 through 4-->
<PDF source="doc1" pages="1-3,6-9,20-21"/> <!--pages 1,2,3,6,7,8,9,20,21-->
<PDF source="doc1" pages="2-penultimate"/> <!--all but first & last pages-->
<PDF source="doc1"/> <!--all pages by default; equivalent to "1-last" -->
The following example assembles three PDF documents, specifying page ranges for the first two. It is equivalent to deleting pages 3-4 from doc1.pdf, deleting page 7 from doc2.pdf, then concatenating the documents.
Example: Assembling pages from documents
<PDF result="doc4.pdf">
	<PDF source="doc1.pdf" pages="1-2,5-last"/>
	<PDF source="doc2.pdf" pages="1-6,8-last"/>
	<PDF source="doc3.pdf"/>
</PDF>
Note: The syntax described here for specifying page ranges is also used to select a range of documents using the select attribute of a PDF source element. (See Specifying multiple input streams.)

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/assemblePDFAssembling.96.4.html