Hello, while making the sample (link is below), I have encountered the issue.
When the pages are out of order, for example:
- first page
- some appendix page
- second page
In this case the document will contain first page and appendix.
There could be 2 workaround for this issue:
1. Create 2 flexilayouts for the first and second page and add them as sections to the FC definition. Configure assembling rules.
2. If the first workaround does not work in your case, You can:
a) create 3 definitions: 1 - first page only, 2 - second page footer only and 3 - both pages.
b) set all 3 definitions in order 1-2-3 and set "Use first acceptable flexilayout"
c) on a recognition stage allow only definitions 1 and 2.
d) after the recognition stage in a batch processing script check if there are cases where 2 goes in order after 1 immediately. Form a new document from this 2. Set the document status to Excluded from automatic assembly in script.
e) place a second recognition stage after a batch processing stage and apply the 3rd definition whenever necessary.
The last workaround should work unconditionaly.