IDocumentSplitterExtractPageToVariant Method ByteScout PDF Extractor SDK
Extracts specified page from PDF or TIFF document to separate file and returns the result documents as array of bytes. This is COM/ActiveX-compatible version of the method ExtractPage(Stream, Stream, Int32) for in-memory processing of PDF or TIFF files.

Namespace:  Bytescout.PDFExtractor
Assembly:  Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.1.4801-master
Syntax

Object ExtractPageToVariant(
	Object sourceDocument,
	int pageNumber
)

Parameters

sourceDocument
Type: SystemObject
Byte array of the source document as 'Variant()'.
pageNumber
Type: SystemInt32
1-based page number to extract.

Return Value

Type: Object
Array of bytes as Object that is exposed to ActiveX/COM as array of objects of Variant datatype ('Variant()').
See Also

Reference