DocumentOptimizerOptimizeDocumentToVariant Method (Object, OptimizationOptions)
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Optimizes PDF document and returns the result PDF document as array of bytes. This is COM/ActiveX-compatible version of the method OptimizeDocument(Stream, Stream, OptimizationOptions).
Namespace:Bytescout.PDFExtractorAssembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
public Object OptimizeDocumentToVariant( Object sourceDocument, OptimizationOptions options )
Parameters
- sourceDocument
- Type: SystemObject
Byte array of the source PDF document as 'Variant()'. - options
- Type: Bytescout.PDFExtractorOptimizationOptions
Optimization options.
Return Value
Type: ObjectArray of bytes as Object that is exposed to ActiveX/COM as array of objects of Variant datatype ('Variant()').
Implements
IDocumentOptimizerOptimizeDocumentToVariant(Object, OptimizationOptions)See Also