AddNewPage

What it does

Adds a page image into a document.

Wichtig! The added images will become accessible only after they are pre-processed. Use the ProcessBatch method to initiate batch processing after you have added the images or use the CloseTask method to close the task and to send it in the Import stage if the images were added into the documents of a task that was opened with the OpenTask method.

Definition

int AddNewPage( int sessionId, int batchId, int documentId, int previousItemId, Page page, File file );

Parameters

Name Type Description
sessionId int The ID of the connection to the Application Server
batchId int The ID of the batch that contains the document
documentId int The ID of the document into which a page is to be added
previousItemId int

The ID explicitly specifying the position of the new page in the set:

  • -1 - the new page will be added at the end of the set
  • 0 - the new page will be added at the start of the set
  • Page ID - the new page will be added after the page with this ID
    Hinweis. A page with this ID must exist.
page Page A description of the page
file File The file that contains the page image

Returned value

Type Description
int The ID of the added page

12.04.2024 18:16:01

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.