Объединить PDF

The Documentize PDF Manager for .NET is a versatile tool designed to merge multiple PDF documents into a single file. It simplifies the consolidation of PDF files, ensuring your documents are merged efficiently and maintaining consistency across content. The component handles internal resources such as fonts and images to optimize the merged document.

Как объединить PDF

Чтобы объединить несколько PDF‑документов в один файл, выполните следующие шаги:

  1. Создайте экземпляр MergeOptions для настройки процесса объединения.
  2. Добавьте входные PDF‑файлы с помощью метода AddInput.
  3. Укажите выходной PDF‑файл с помощью метода AddOutput.
  4. Запустите объединение, вызвав метод Merge класса PdfManager.
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‑документов за один запуск.
 Русский