Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The Aspose.Pdf.LowCode.ImageExtractor plugin extracts images from PDF documents. Configure the operation with ImageExtractorOptions, add the source PDF, optionally add an output directory, and call Process.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void ExtractImagesWithPlugin()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_WorkingDocuments();
// Create PDF ImageExtractor plugin
var plugin = new Aspose.Pdf.LowCode.ImageExtractor();
// Add input PDF and output folder
var options = new Aspose.Pdf.LowCode.ImageExtractorOptions();
options.AddInput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "ExtractImages.pdf"));
options.AddInput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "ExtractedImages\\"));
// Extract images
var result = plugin.Process(options);
// Get the path of the first extracted image
var firstImagePath = result.ResultCollection[0].ToFile();
}
If an output folder is provided, Process returns file results. Without an output folder, image data can be returned as stream results.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.