About page numbers

Top  Previous  Next

Page numbers can be added to each page of a document when exporting. This feature allows "Bates" numbers to be created; these are designed to be unique over a complete set of documents and are normally made up of a prefix, perhaps the file name stem, and a serial number.

The syntax for specifying the format of the number is similar to that for file names:

* represents the original file stem

" represents a digit of the serial number

For example, you create a four-digit page number using """" . A typical template might be ABC*""""" which would have a constant prefix of ABC followed by the file name and a 5-digit serial number. The maximum length of the page number template is 150 characters.

For example:

Template

Creates numbers

""

01, 02, 03, etc.

Page "

Page 1, Page 2,.. Page 10 etc.

For a PCL file called 'SALES.PRN' with the user-added prefix of APRIL:

Template

Creates numbers

APRIL*"""

APRILSALES001, APRILSALES002, etc.

You can also specify a starting page number; that is, the number that would be assigned to page 1 of the document. If, for example, it is 12345 then if you start output at page 10 that page will be numbered 12354, so that the numbering is consistent for any subset. If you select Remember number for next time from the 'layout' page of the Configuration dialogue, then on closing the file the page number is saved (if it is larger than the previous highest number).

If you want to have two different projects each with its own range of page numbers then you will need to use different configuration files. The configuration file name can be specified on the command line or in a shortcut. Use the Save As button on the Configuration dialogue to create such a file, and a shortcut to it.

It is possible to specify the starting page number on the command line: use the /NEXTPAGE option e.g.

ESCAPEE myfile.pcl /TIFF /NEXTPAGE 12345

You can opt to Save number now which resets the stored page number to the value in the "Number for next page" box next to it. Note that otherwise the last-used page number is only saved if greater than the highest previously used.
On the command line, a negative value of /NEXTPAGE ensures that the page number is not saved for the next document and that the number is adjusted by any offset in the /PAGE option. For example the command:

escapee myfile.pcl /print /page 4-5 /nextpage -1 /pnum 'Page " of subset'

would print pages 4 to 5, numbering page 4 of the document as "Page 1 of subset" and page 5 as "Page 2 of subset".

Page numbers can be incorporated into the the output file's name. When a "plus" sign is included in the output file name specified in the File | Export dialogue, it is converted to the page number in the output filename. For example, the set-up:

Output file specification: *+.PDF
Page1 number: 3
Number template: p"
Input filename: FILE1

creates an output file named FILE1p3.PDF with pages numbered, starting at 3. To output the file without printing the number on each page, select a null font or clear the font point size or the horizontal or vertical position fields in the 'Option | Configuration' dialogue's Layout page.


See also

Creating page numbers