Link Search Menu Expand Document

IDocumentSplitter2SplitToVariant Method

Splits PDF or TIFF document by found text and returns the result PDF documents as array of byte arrays. This is COM/ActiveX-compatible version of the method Split(Stream, String, Boolean, Boolean, Boolean) for in-memory processing of PDF files.

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
Object SplitToVariant(
	Object sourceDocument,
	string searchString,
	bool caseSensitive,
	bool useRegex,
	bool excludePageWithFoundText
)

Parameters

sourceDocument
Type: SystemObject
Byte array of the source document as 'Variant()'.
searchString
Type: SystemString
Search string.
caseSensitive
Type: SystemBoolean
Case sensitivity.
useRegex
Type: SystemBoolean
Set true if the [!:searchString] contains a regular expression.
excludePageWithFoundText
Type: SystemBoolean
Whether to exclude the page with found search string from split parts.

Return Value

Type: Object
Array of byte arrays containing splitted parts which are presented as 'Variant()'.
See Also

Reference