Class ImageExtractor

Info

Represents Documentize.ImageExtractor plugin. Used to extract images from PDF documents.

public class ImageExtractor

Inheritance

objectImageExtractor

Inherited Members

Examples

The example demonstrates how to extract images from PDF document.

// create ImageExtractor object to extract images
var plugin = new ImageExtractor();
// create ImageExtractorOptions
var options = new ImageExtractorOptions();
// add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// set output directory
options.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// perform extraction process
var resultContainer = plugin.Process(options);
// get the image from the ResultContainer object
var imageExtracted = resultContainer.ResultCollection[0].ToFile();

Constructors

ImageExtractor()

public ImageExtractor()

Methods

Process(ImageExtractorOptions)

Starts the Documentize.ImageExtractor processing with the specified parameters.

public ResultContainer Process(ImageExtractorOptions options)

Parameters

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

 English