Specifies one or more page sets to which the subsequent barcode, text and replace commands are applied.
pages PageSet [, PageSet [, ...]]
PageSet
Page sets are specified as follows:
Single page number: e.g. 3
0 is the same as all
Range of pages, FromPage-ToPage: e.g. 3-7
If FromPage is 0 range starts
from page 1: e.g. 0-23 is the same as 1-23
If ToPage is 0 range ends
with the last page: e.g. 4-0 means from page 4 to the last page
| all | all pages (the same as 0) |
| even | all even pages |
| odd | all odd pages |
| first | first page (the same as 1) |
| last | last pages of the file |
| last-N | Nth page from the last page. e.g. last-1 means page before last |
The command stays in effect until another pages, input, output or append command.
The default PageSet, consisting only of page 1, is created by the input and output commands. Therefore, if a barcode and/or text is to be added only to the first page, then the pages command is not required.
The barcode, text and replace commands are applied only once to any page, even if that page belongs to more than one PageSet. For example, the two PageSets for a barcode, pages 5-7, EVEN, will overlap on page 6. However, page 6 will receive on only one barcode, even though it shows up in both PageSets.
Apply barcode with different position for odd and even pages
input "input.pdf"
pages odd
barcode right=0.75, bottom=0.1, ${CustomerID}${formID}${page?00}
pages even
barcode right=1.25, bottom=0.1, ${CustomerID}${formID}${page?00}
Use multiple pages sets in a single page command
pages 2, 5, 7, 12-17, last
pages odd, 4-7 # pages 5,7 are in both ranges will be used only once
Format |
Meaning |
Italic |
Information
that the user must supply |
Bold |
Elements that the user must type exactly as shown. |
Between brackets ([]) |
Optional
items |
Ellipsis (...) |
Parameter that can be repeated several times |