To split a job a multipass script is needed
Steps:
1) On the 1st pass the job should be indexed based on the number of pages on the mailpiece:
Example 6, 10, and 24
[INDEX_SORT] INDEX "Split" [OBJECT_MAIN_BOUNDARY_PASS1]
FROM [VARIABLE_INDEX_SORT]
//Variable containing the number of pages of each mailpiece ASCENDING
;
The index on the 1st pass would be :
6
6
6
6
10
10
10
10
24
24
24
2) On the 2nd pass the script will need to extract the index from the 1st pass into a variable then use the action SPLIT command to split the job,
before calling the action SPLIT there should be a TEST that test every time that the index change; It is changing from 6 to 10 and from 10 to 24; then It will end up with three splits: a job with all the mailpiece containing 6 pages, 10 pages and 24 pages.
//This is an example of code[OBJECT_PASS2_INITIALIZATION] OBJECT
CONDITION
ACTION
[EXTRACT_INDEX_FROM_PASS1] AND
[EXTRACT_PREVIOUS_SPLIT_TYPE] AND
[LOGIC_GOTO_PASS2_PROCESS]
;
[EXTRACT_INDEX_FROM_PASS1] EXTRACT [VARIABLE_INDEX_FROM_PASS1] EQ INDEX FROM "Split";
[LOGIC_GOTO_PASS2_PROCESS] LOGIC GOTO [OBJECT_PASS2_PROCESS];
[OBJECT_PASS2_PROCESS] OBJECT BOUNDARY SCAN0
BEGINWINDOWX 0 BEGINWINDOWY 0
ENDWINDOWX 0 ENDWINDOWY 0
TEST
[TEST_BOUNDARY]
//Condition to define the boundaryACTION
[OBJECT_SPLIT_JOB]
;
[OBJECT_SPLIT_JOB] OBJECT
CONDITION
TEST
NEWPARENT AND [TEST_SPLIT_TYPE_CHANGED]
//if Split Type Change ACTION
[EXTRACT_PREVIOUS_SPLIT_TYPE]
//Assigns Current Split Type to previous Split AND [SPLIT]
//Split Job (Group together Mailpiece based on number of pages) ;
[TEST_SPLIT_TYPE_CHANGED] TEST [VARIABLE_INDEX_FROM_PASS1] NE [VARIABLE_PREVIOUS_SPLIT_NEW_TYPE];
[EXTRACT_PREVIOUS_SPLIT_TYPE] EXTRACT [VARIABLE_PREVIOUS_SPLIT_NEW_TYPE] EQ [VARIABLE_INDEX_FROM_PASS1:];
[SPLIT] SPLIT;
Question
Subject: AFPOUT - Page size and VDE - logically splitting document
Initial Details: I have a questions about AFPOUT on PIOE - 1)How can I control the page size coming out - I have a job that is supposed to be 17 1/2 x 11 and it is coming out 8/12 x 11 On another matter 2)How would I go about splitting a 17 1/2 x 11 document in VDE so that I can change pagination?
UPDATED: April 21, 2017