跳過到頁腳內容

組織 PDF

在幾秒鐘內組織您的 PDF 文檔中的頁面和書籤。

Icon Main related to 組織 PDF
全面掌控您的 PDF 結構

1

添加、複製和刪除頁面

根據需要管理 PDF 的結構,添加、複製或刪除頁面。此功能允許輕松組織和重新排列內容。

學習如何:管理 PDF 頁面
using IronPdf;

// Import cover page
PdfDocument coverPage = PdfDocument.FromFile("coverPage.pdf");
// Import content document
PdfDocument contentPage = PdfDocument.FromFile("contentPage.pdf");
// Insert PDF
contentPage.InsertPdf(coverPage, 0);
contentPage.SaveAs("report_final.pdf");
// Copy a single page into a new PDF object
PdfDocument myReport = PdfDocument.FromFile("report_final.pdf");
PdfDocument copyOfPageOne = myReport.CopyPage(0);
C#
2

合併和拆分 PDF

將多個 PDF 合併為一個文檔或將大的 PDF 拆分為較小的部分,使文檔更易於管理和分發。

學習如何:合併與分割 PDF
using IronPdf;
// Import two pdfs
PdfDocument pdf_A = PdfDocument.FromFile("merge_docA.pdf");
PdfDocument pdf_B = PdfDocument.FromFile("merge_docB.pdf");
// Merge the two pdfs A and B
var merged = PdfDocument.Merge(pdf_A, pdf_B);
merged.SaveAs("Merged.pdf");
C#

Icon Main related to 組織 PDF
補充組織工具

1

書籤和大綱

在您的 PDF 中創建書籤和大綱,以增強導航功能,並為讀者提供一種直觀方式查找關鍵部分。

學習如何:建立書籤與大綱
using IronPdf;
// Create a new PDF or edit an existing document.
PdfDocument pdf = PdfDocument.FromFile("existing.pdf");
// Add a bookmark
var mainBookmarks = pdf.Bookmarks.AddBookMarkAtEnd("NameOfBookmark", 0);
//Add a sub-bookmark
var subBookmarks = mainBookmarks.Children.AddBookMarkAtEnd("Conclusion", 1);
pdf.SaveAs("singleLayerBookmarks.pdf");
C#
2

附件

將附件添加到您的 PDF 文檔中,例如附加文件,圖片或相關內容,以提供補充的信息或上下文。

學習如何:管理 PDF 中的附件
using IronPdf;
using System.IO;
// Import attachment file
byte[] fileData = File.ReadAllBytes(@"path/to/file");
// Open existing PDF
PdfDocument pdf = PdfDocument.FromFile("sample.pdf");
// Add attachment to the PDF
pdf.Attachments.AddAttachment("Example", fileData);
pdf.SaveAs("addAttachment.pdf");
C#
準備好開始了嗎?
Nuget 下載 18,560,885 | 版本: 2026.4 剛剛發布
Still Scrolling Icon

還在捲動嗎?

想要快速證明? PM > Install-Package IronPdf
執行範例 觀看您的 HTML 變成 PDF。

鋼鐵支援團隊

我們每週 5 天,每天 24 小時在線上。
聊天
電子郵件
打電話給我