图像提取器插件为 Aspose.PDF

Aspose.PDF Image Extractor Plugin for .NET 允许开发人员从 PDF 文件中有效地获取所有内置图像。

最新文章

Aspose.PDF 图像提取器插件关键功能

  • ** 提取所有嵌入式图像**识别和保存 PDF 页面的图像,如 JPEG、PNG 或其他支持的格式,同时保持原始质量。

  • Batch 图像提取器处理多个PDF或从多个页面文档中提取图像,使用单个呼叫,最大限度地提高生产力。

  • ** 灵活出口选项**设置输出格式和位置,以满足不同的业务或技术要求。

** 開始使用 Aspose.PDF 圖像提取器插件**

  • 安装 Aspose.PDF 为 .NET在您的项目中使用 NuGet 或通过添加集合引用 Aspose.PDF 图书馆。

  • ** 设置您的许可证**应用您的 Aspose 许可证,以解锁完整的提取功能。

  • ** 设置提取选项**使用 ImageExtractorImageExtractorOptions 要指定输入PDF和提取设置。

  • 此分類上一篇: Run Extraction处理文件(s)并获取提取的图像,以便进一步使用或存储。

** 例子:从 PDF 中提取图像在 C#**

using Aspose.Pdf.Plugins;

// Input PDF path
var inputPath = @"C:\Samples\sample.pdf";

// Configure extraction options
var imageExtractorOptions = new ImageExtractorOptions();
imageExtractorOptions.AddInput(new FileDataSource(inputPath));

// Create the ImageExtractor plugin
using var plugin = new ImageExtractor();

// Extract images
var resultContainer = plugin.Process(imageExtractorOptions);
// Access the extracted images
foreach (var result in resultContainer.ResultCollection)
{
    var file = result.ToFile();
    Console.WriteLine("Extracted image: " + file);
}

* 最佳做法*

  • 总是检查 PDF 许可,如果图像没有提取。
  • 以大文件集为效率的包装过程。
  • 查看输出图像格式,以便与下流工具兼容。

相关资源:

 中文