Class ImageExtractor
Info
Represents Documentize.ImageExtractor plugin. Used to extract images from PDF documents.
public static 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 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
options
ImageExtractorOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Exceptions
If options not set.
Namespace: Documentize Assembly: Documentize.dll