合并 PDF

Documentize PDF Manager for .NET 是一款多功能工具,旨在将多个 PDF 文档合并为单个文件。它简化了 PDF 文件的整合过程,确保文档高效合并并在内容上保持一致性。该组件会处理字体、图像等内部资源,以优化合并后的文档。

如何合并 PDF

将多个 PDF 文档合并为单个文件,请按以下步骤操作:

  1. 创建 MergeOptions 实例以配置合并过程。
  2. 使用 AddInput 方法添加输入 PDF 文件。
  3. 使用 AddOutput 方法添加输出 PDF 文件。
  4. 调用 PdfManager 类的 Merge 方法执行合并。
1// Create MergeOptions object to set instructions
2var options = new MergeOptions();
3// Add input file paths
4options.AddInput(new FileData("path_to_your_pdf_file_1.pdf"));
5options.AddInput(new FileData("path_to_your_pdf_file_2.pdf"));
6// Set output file path
7options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
8// Perform the process
9PdfManager.Merge(options);

关键特性

  • 合并多个 PDF:轻松将多个 PDF 文件合并为一个。
  • 资源优化:合并时删除重复的字体和图像。
  • 批量处理:一次性合并大量 PDF 文档。
 中文