Is there a way to process only the first page of a document and skip the others?
There are two methods to do the above.
- Using Annex pages
In the Document Definition properties, enable annex pages.
Please change the numbers of annex pages and Document Definition sections according to your needs.
The pages that are not able to be recognized with the Document Definition sections will be marked as unknown pages and will become annex pages.
This method requires recognition, so even if you set unneeded pages as annexes, the number of remaining pages in the license will be reduced.
Creating a custom script stage
Another way is to create a custom (script) processing stage before the recognition stage.You can automatically delete unneeded pages from the batch, leaving only the first page of the document. The sample code snippet is as below:
while(Batch.Documents.Count>1)The added custom script stage should look like on the screenshot below:
FCTools.ShowMessage("Overall:" + Batch.Documents.Count.ToString());
FCTools.ShowMessage("Currently Deleting" + Documents.Count.ToString());
This method will leave only the first page of the first imported document if there are multiple files to import in one batch.
About Document Definitions with Annex pages:
For more information on creating script processing stages: