Community

Ignore the cover sheet

I would like to use cover page for recognize the document type. But I will ignore the page when export the document.

How can I do ?

Was this article helpful?

0 out of 0 found this helpful

Comments

11 comments

  • Avatar
    Ekaterina

    Hello,

    Could you please describe in more details your scenario? What type of export do you use and do you plan to export images?

    0
  • Avatar
    Andrew

    Hello !

    I would like to use the cover sheet for the define the document type for recognize the document export to which sharepoint document library. But At the output searchable PDF format, It would like to ignore the cover sheet (first page).

    File Format: Searchable PDF

    Export to Sharepoint

    Flexicapture Version 11 Release 4

    0
  • Avatar
    Ekaterina

    Hello,

    After recognition you may create the script stage which delete the first page of documents by using IBatch.DeteteDocument() function: Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IBatch.

    0
  • Avatar
    Andrew

    How can I create the script stage after recognition?

    0
  • Avatar
    Ekaterina

    Hello,

    Please, make sure that you choose "Automatic" setting in the "Create Processing Stage" window as shown on the screenshot

    0
  • Avatar
    Andrew

    Sorry. I cannot view the screenshot.

    0
  • Avatar
    Ekaterina

    Hello,

    Please clean your browser cash.

    0
  • Avatar
    Andrew

    Do you have any sample script to learn how to develop the code?

    0
  • Avatar
    Ekaterina

    Hello,

    The details of the FC scripting you may look in the “Appendix > Using scripts in ABBYY FlexiCapture”. The script samples you may find in the “Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Sample scripts” article in the Developer’s Help.

     

    Also you may see how to create a new stage in the workflow it the knowledge base article: http://knowledgebase.abbyy.com/article/1308

    0
  • Avatar
    Adrian Enders

    This is an old post, but we are trying to do something similar. So I thought I would update with some sample code.

    Create a custom script stage in the workflow as mentioned above. Insert the following code to have it delete the first page of each document. This code is not production ready! If there is only 1 page in a document then it will delete that page! You may want to check and see if there is only 1 page in the document first. Also, this needs error handling and perhaps other considerations for your needs. But here is a quick sample script to get someone started. You use this at your own risk.

    foreach (IDocument doc in Batch.Documents)

    {

        

        foreach (IPage page in doc.Pages)

        {

            

            if (page.Index == 0)

            {

                Batch.DeletePage(page);

            }

            

        }

        

    }

    0
  • Avatar
    Terence Tan

    Hi anyone has a sample script in VBscript to handle the deletion of the 1st page

    Thanks 

    0

Please sign in to leave a comment.