Community

Merge documents using scripts

In scripts, we can access extracted data of a document/s, In certain cases and using certain criteria I want to merge 2 or 3 documents into one before it gets exported to output folder. Can anyone tell me how to merge 2 or more documents into one document using scripts? I am using ABBYY Flexicapture 10 Distributed.




Thanks.
0

Comments

3 comments

  • Avatar
    Sushi


    Rahul,

    I don't have a sample script for exactly what you want to do but I do have a script that would move pages if they are unrecognized. It should give you an idea on how to move the pages. Basically you would set this up in a custom stage (Document Assembly - Batch Processing)

    Dim I
    i=0
    Do While i <>
    if Documents.Item(i).DefinitionName="" AN Documents.Item(i+1).DefinitonName="" then
    me.Movepage Documents.Item(i+1), Documents.Item(i), 0,0
    else
    i =i+1
    end if
    loop
    0
  • Avatar
    Alex Solo

    Thank you very much, Sushi

    0
  • Avatar
    Nilesh Pandey

    Hi Rahul,

     

    There are two documents in Batch. The first document is recognized as Invoice and another as "Unknown". Would this code move the page in the Unknown document to the Invoice Document.

    Please let me know. It would be a lot of help for me.

     

    Thanks

    0

Please sign in to leave a comment.