Class ImageExtractor
Info
Represents Documentize.ImageExtractor plugin. Used to extract images from PDF documents.
public class ImageExtractor
Inheritance
Inherited Members
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
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
options
ImageExtractorOptions: An options object containg instructions for the operation.
Returns
ResultContainer : An Documentize.ResultContainer object containing the result of the operation.
Namespace: Documentize Assembly: Documentize.dll