Skip to main content
Represents the batch.
Some methods and properties of this object are not available on the Web Verification Station for checking rules locally. The methods and properties that are not supported are marked with an asterisk (*).

Methods

The following methods require permissions for changing the batch structure. They can be called only from the batch processing script.

Create a document from a page

The CreateDocumentFromPage method takes a page from the document and creates a new document from that page. Specify the index for the new document in the targetPosition parameter. The index must be a number between 0 and N, where N is the total number of documents in the batch. When the method is called:
  • The documents with indexes from 0 to targetPosition - 1 remain in their original positions.
  • The documents with indexes from targetPosition to N move one position forward.
  • The new document is placed in the vacated targetPosition.
If the document becomes empty after the page is removed, it is deleted. The following example processes the first document:

Create a page from an image

The CreatePageFromImage method creates a page from an IPictureObject object and returns the created page:
  • If a target document is specified, the page is added to this document. To create a one-page document, specify null as the target document.
  • If a position is specified, the page is added to the specified position of the document (when a target document is specified). Otherwise, a one-page document is added to the specified position of the batch (when null is specified as the target document). The initial position corresponds to 0, and the end of the document or batch corresponds to -1.
  • If the sourceInfo parameter is specified, it is written into the information about the page source. Otherwise, information about the page source is received from IPictureObject.

Properties