Document and Folder Separation Scripts

Use the methods in these classes to trigger profiles and to control separation:

  • DocumentSeparationProcessingScript – methods for determining document separation
  • DocumentSeparationProfileTriggerScript – methods to trigger the correct document separation profile
  • FolderSeparationProcessingScript – methods for determining folder separation
  • FolderSeparationProfileTriggerScript – methods to trigger the correct folder separation profile

Each separation profile you create in your document type has its own unique set of classes. In the example below there are two document separation profiles, and each profile has a unique set of the DocumentSeparationProcessingScript and the DocumentSeparationProfileTriggerScript classes. There is also a folder separation profile; it too has its own copies of the FolderSeparationProcessingScript and the FolderSeparationProfileTriggerScript classes.

DocumentSeparationProcessingScript Class

CheckForDocumentSeparation Method

CheckForDocumentSeparation returns Boolean (true or false). This method is called by the Capture / Import module after barcode and patch code recognition on each page. Return false (the default) if the page is not a separator sheet, or return true to trigger separation.

Parameters:

DirectionParameterTypeDescription
INfolderIFolder

The current folder

barcodeslist of IBarcodeThe list of any barcodes detected on the page
patchcodeslist of IPatchCodeThe list of any patch codes detected on the page
importFIlePathstringThe full path of the imported document
importFileElementsarray of stringThe pieces of the importFilePath, including the file name; for example, “c:\docs\doc1.tif” would have three entries – “c:”, “docs” and “doc1.tif”
devicePageIDevicePageVarious information about the current page; see IDevicePage for detailsAvailable only in v5.3.1 and higher.
IN/OUTseparatorValuestringA separator value that you can return to the batch; defaults to an empty string

Return:

True or false

CheckForSeparationTrigger Method

CheckForSeparationTrigger returns either true or false. This method is called after barcode and patch code recognition on each page. Return true to select the current profile, or false to bypass the profile.

Parameters:

DirectionParameterTypeDescription
INbarcodeslist of IBarcodeThe list of any barcodes detected on the page
patchcodeslist of IPatchCodeThe list of any patch codes detected on the page
importFilePathstringThe full path of the imported document
importFileElementsarray of stringThe pieces of the importFilePath, including the file name; for example, “c:\docs\doc1.tif” would have three entries – “c:”, “docs” and “doc1.tif”
devicePageIDevicePageVarious information about the current page; see IDevicePage for detailsAvailable only in v5.3.1 and higher.

Return:

True of false

FolderSeparationProcessingScript Class

CheckForFolderSeparation Method

CheckForFolderSeparation returns either true or false. This method is called by the Capture / Import module after barcode and patch code recognition on each page. Return false (the default) if the page is not a folder separator sheet, or return true to trigger separation.

Parameters:

DirectionParameterTypeDescription
INbatchIBatchThe current batch
barcodeslist of IBarcodeThe list of any barcodes detected on the page
patchcodeslist of IPatchCodeThe list of any patch codes detected on the page
importFilePathstringThe full path of the imported document
importFileElementsarray of stringsThe pieces of the importFilePath, including the file name; for example, “c:\docs\doc1.tif” would have three entries – “c:”, “docs” and “doc1.tif”
devicePageIDevicePageVarious information about the current page; see IDevicePage for detailsAvailable only in v5.3.1 and higher.
IN/OUTseparatorValuestringA separator value that you can return to the batch; defaults to an empty string
folderNamestringThe name of the folder

Return:

True or false

CheckForSeparationTrigger Method

CheckForSeparationTrigger returns either true or false. This method is called by the Capture / Import module after barcode and patch code recognition on each page. Return true to select the current profile, or false to bypass the profile.

Parameters:

DirectionParameterTypeDescription
INbarcodeslist of IBarcodeThe list of any barcodes detected on the page
patchcodeslist of IPatchCodeThe list of any patch codes detected on the page
importFilePathstringThe full path of the imported document
importFileElementsarray of stringThe pieces of the importFilePath, including the file name; for example, “c:\docs\doc1.tif” would have three entries – “c:”, “docs” and “doc1.tif”
devicePageIDevicePageVarious information about the current page; see IDevicePage for detailsAvailable only in v5.3.1 and higher.

Return:

True or false

On this page:

Related Pages: