Matching a multi-page FlexiLayout
To match a FlexiLayout with multiple pages, select the pages in the Batch or in the Image window and then select Match FlexiLayout from the shortcut menu. The application will attempt to match the FlexiLayout as follows:
- The selected pages are pre-recognized. For each page, the correct orientation is automatically selected based on the pre-recognition language.
- The first page in the document is detected.
- The last page in the document is detected.
- The FlexiLayout is matched with the detected pages.
- If the FlexiLayout matches the pages, steps 2-4 are performed for the page following the recognized document. If the FlexiLayout does not match, the steps are performed starting with the next page.
The first page in the selection becomes the first page of the document. Next, the program will treat the page following the last page of the previous document as the first page of the new document.
If the FlexiLayout has a set number of pages (the possible number of pages is specified in the FlexiLayout properties), the last page is detected based on the specified number of pages. If the number of pages may vary in the range [MinPages, MaxPages], the program will check if a Footer element is present on the last page with the number MinPages. If this page contains a Footer element, it is deemed to be the last page in the document. Otherwise, the program will check the following conditions for each next page starting from MinPages+1):
- Whether this page is redundant (its number in the document is greater than the maximum number of pages MaxPages).
- Whether this page contains a Header element (this check is performed with the Footer element is optional).
- Whether this page contains a Footer element.
If 1 or 2 is true, the preceding page is selected as the last page in the document. If 3 is true, the current page is selected as the last page in the document.
4/12/2024 6:16:02 PM