Class ImageExtractor
Class ImageExtractor
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Represents ImageExtractor plugin.
public class ImageExtractor : PdfExtractor, IPlugin, IDisposable
Inheritance
object ← PdfExtractor ← ImageExtractor
Implements
Inherited Members
PdfExtractor.Process(IPluginOptions), PdfExtractor.Dispose(), 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
using (ImageExtractor extractor = new ImageExtractor())
{
// create ImageExtractorOptions
imageExtractorOptions = new ImageExtractorOptions();
// add input file path to data sources
imageExtractor.AddDataSource(new FileDataSource(inputPath));
// perform extraction process
ResultContainer resultContainer = extractor.Process(imageExtractorOptions);
// get the image from the ResultContainer object
var imageExtracted = resultContainer.ResultCollection[0].ToFile();
}
Remarks
The Aspose.Pdf.Plugins.ImageExtractor object is used to extract text in PDF documents.
Constructors
ImageExtractor()
public ImageExtractor()