Page tree

You can specify a page number offset in an APA file. You can enter simple addition + and subtraction - expressions in page assignment instructions in APA files.
Math expressions are valid with or without spaces.
Note: Geometry assignments do not support addition and subtraction.

In the Page Assignments view, page offsets look like this:

Refined file name

Page set name/prefix

Position

Layer

Page.p.pdf

Pageset1

1

Page.p.pdf

Pageset1

- 50

1

Page.p.pdf

Pageset1

+ 50 + 30

1

In the Raw APA File view, the same instructions are:
ASSIGN= "Page.p[#PgPosition].pdf" "Pageset1" [#PgPosition] 1
ASSIGN= "Page.p[#PgPosition].pdf" "Pageset1" [#PgPosition] 1
ASSIGN= "Page.p[#PgPosition].pdf" "Pageset1" [#PgPosition] + 50 + 30 1

Example 1

This example includes all the page assignment statements for a book that consists of seven files. The page position is calculated using the page number from the page name plus the number of pages in each of the preceding files.

Refined file name

Page set name/prefix

Position

Layer

1_frontcovers.p.pdf

1

2_intro.p.pdf

+10

1

3_chpt_1.p.pdf

+10+38

1

4_chpt_2.p.pdf

+10+38+516

1

5_chpt_3.p.pdf

+10+38+516+8

1

6_chpt_4.p.pdf

+10+38+516+8+30

1

7_appendix.p.pdf

+10+38+516+8+30+8

1

The 10 pages from the 1_frontcovers file are assigned to page positions one to 10.
The 38 pages from the 2_intro file are assigned to page positions 11 to 48.
The 516 pages from the 3_chpt_1 file are assigned to page positions 49 to 565.
The 8 pages from the 4_chpt_2 file are assigned to page positions 566 to 574.
The 30 pages from the 5_chpt_3 file are assigned to page positions 575 to 605.
The 8 pages from the 6_chpt_4 file are assigned to page positions 606 to 614.
The pages from the 7_appendix file are assigned to page positions from 616 on.

Example 2

This example includes page assignments for a book that includes the starting page number in the page names. For example, Page_28_56.p1.pdf has a starting page number of 28.
The page position can be calculated by adding the starting page number (for example 01 or 28) and the page number (for example 1 from P1, 2 from P2, 3 from P3, and so on), then subtracting 1. For example, for page name Page_28_56.p3.pdf, the page position would be 28 + 3 - 1 = 30.
Refined filenames are as follows:
Page_01_27.p1.pdf
Page_01_27.p2.pdf
Page_01_27.p3.pdf
... Page_01_27.p27.pdf
Page_28_56.p1.pdf
Page_28_56.p2.pdf
Page_28_56.p3.pdf
... Page_28_56.p56.pdf

In the Raw APA File view the instructions to assign the pages would be:
ASSIGN= [$][#Start][$].p[#PgPosition].pdf "" [#Start]+[#PgPosition] -1 1*

One way to add the instruction in the APA Editor is to type the ASSIGN= statement in the Raw APA File view. If you do that the wild cards will be correctly named. Alternatively, you can start entering it in the Page Assignments view and make any required additions or changes in the Raw APA File view.
In the Page Assignments view, the instruction will look like:

Refined file name

Page set name/prefix

Position

Layer

__.p.pdf

+ -1

1

If you typed the ASSIGN statement in the Raw APA File view, the  wild cards have the names Start and PgPosition. You can check the wild card names by moving the cursor over the wild card icons.
When the APA instruction is executed, the resulting page assignments will be:
Page_01_27.p1.pdf is assigned to page position 1.
Page_01_27.p2.pdf is assigned to page position 2.
Page_01_27.p3.pdf is assigned to page position 3.
... Page_01_27.p27.pdf is assigned to page position 27.
Page_28_56.p1.pdf is assigned to page position 28 + 1 - 1 = 28.
Page_28_56.p1.pdf is assigned to page position 28 + 2 - 1 = 29.
Page_28_56.p1.pdf is assigned to page position 28 + 3 - 1 = 30.
... Page_28_56.p56.pdf is assigned to page position 28 + 56 -1 = 83.


Legend

  Match Letters

Match letters (a-z, A-Z) in the page filename. For example .p1.pdf matches filenames Book.p1.pdf, Front matter.p1.pdf, and JobXYZ.p1.pdf.
You can also specify the number of characters that this wild card will match.
To verify the number of characters that will be matched, move the cursor over the icon and check the length that is listed.

  Match Digits

Match numbers (0-9) in the page filename. For example .p.pdf matches filenames 12345.p1.pdf, 05282003.p2.pdf, and 01.p165.pdf. 
You can also specify the number of characters that this wild card will match.
To verify the number of characters that will be matched, move the cursor over the icon and check the length that is listed.

 Match Either

Match letters or numbers (a-z, A-Z, 0-9) in the page filename. For example .p.pdf matches filenames 12345.p1.pdf, ABCDE.p2.pdf, Book cover99.p76.pdf, Book052803.p205.pdf. 
Note: .p.pdf matches the same filenames.

You can also specify the number of characters that this wild card will match.
To verify the number of characters that will be matched, move the cursor over the icon and check the length that is listed.

 This Position

Indicates that this part of the page name is the same as the page position to which the page will be assigned. 
For example if you enter Book.p.pdf, a matching wild card  is inserted in the Position column. Book.p1.pdf is assigned to position 1, Book.p2.pdf is assigned to position 2, and so on.

 This Page Set (Page Set Assignment mode only)

Indicates that this part of the page name is the same as the name of the page set or page set prefix to which the page will be assigned. 
For example, if you enter .p1.pdf, a matching wild card  is inserted in the Page Set Name/Prefix column. Book.p1.pdf would be assigned to the Book page set.

 All Page Sets (Page Set Assignment mode only)

Assigns the page to the designated page position in all sets in the job.

 This Product (Run List Assignment mode only)

Indicates that this part of the page name is the same as the name of the product.
For example, if you enter .p.pdf, a matching wild card  is inserted in the Product Run List column. If your product is Book, page Book.p1.pdf will be assigned to position 1 in the Book run list, page Book.p2.pdf will be assigned to position 2 in the Book run list and so on.

 All Products (Run List Assignment mode only)

Assigns the page to the designated page positions in the run lists of all the products.

 This Part (Run List Assignment mode only)

Indicates that this part of the page name is the same as the name of the part.
For example, if you enter .p.pdf, a matching wild card  is inserted in the Part Run List column. If your part is Cover, page Cover.p1.pdf will be assigned to position 1 in the Cover run list, page Cover.p2.pdf will be assigned to position 2 in the Cover run list and so on.

 All Parts (Run List Assignment mode only)

Assigns the page to the designated page positions in the run lists of all the parts.


 

  • No labels