Class ImageExtractor

Info

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

public static class ImageExtractor

Inheritance

objectImageExtractor

Inherited Members

Examples

The example demonstrates how to extract images from PDF document.

// Create ImageExtractorOptions to set instructions
var options = new ImageExtractorOptions();
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// Perform the process
var results = ImageExtractor.Process(options);
// Get path to image result
var imageExtracted = results.ResultCollection[0].ToFile();

Methods

Process(ImageExtractorOptions)

Extract images from PDF document.

public static ResultContainer Process(ImageExtractorOptions options)

Parameters

Returns

ResultContainer : An object containing the result of the operation.

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

 English