C#에서 PDF를 정리하는 방법
IronPDF PDF 생성 기능 외에도 다양한 도구를 제공하며, 그중 일부는 PDF 문서의 구조를 구성하는 데 활용할 수 있습니다. PDF 구조를 편집하는 것이 이보다 쉬웠던 적은 없었습니다. 하나의 라이브러리로 PDF 구조를 조작하고, 책갈피와 첨부 파일을 추가하고, 이상적인 PDF 레이아웃을 만들 수 있습니다. IronPDF와 함께라면 더 이상 PDF 정리에 어려움을 겪지 않을 것입니다.
이 포괄적인 튜토리얼에서, IronPDF를 사용하여 PDF 문서를 더 잘 정리할 수 있는 방법을 탐구할 것입니다. 이를 위해, 이러한 조직 기능이 어떻게 작동하는지에 대한 몇 가지 기본 예제를 통해, 코드 예제와 그에 따른 설명을 살펴보겠습니다. 이 글이 끝날 무렵, 당신은 IronPDF를 사용하여 PDF 조직 요구에 바로 뛰어들 준비가 되어 있을 것입니다.
빠른 시작: IronPDF 로 PDF를 손쉽게 병합하세요IronPDF 사용하여 단 몇 줄의 코드로 PDF 파일을 정리해 보세요. 이 예제는 IronPDF 라이브러리를 사용하여 여러 PDF 문서를 하나로 병합하는 방법을 보여줍니다. 빠르고 간단한 솔루션을 찾고 있는 개발자들에게 이상적인 이 방법은 당신의 C# 프로젝트에 통합되어 문서 관리 효율성을 높여줍니다.
-
1IronPDF를 NuGet Package Manager로 설치하십시오
-
2다음 코드 조각을 복사하여 실행하세요.
IronPdf.PdfDocument.Merge( IronPdf.PdfDocument.FromFile("file1.pdf"), IronPdf.PdfDocument.FromFile("file2.pdf")) .SaveAs("merged.pdf");IronPdf.PdfDocument.Merge( IronPdf.PdfDocument.FromFile("file1.pdf"), IronPdf.PdfDocument.FromFile("file2.pdf")) .SaveAs("merged.pdf")IronPdf.PdfDocument.Merge( IronPdf.PdfDocument.FromFile("file1.pdf"), IronPdf.PdfDocument.FromFile("file2.pdf")) .SaveAs("merged.pdf") -
3실제 운영 환경에서 테스트할 수 있도록 배포하세요.
오늘 프로젝트에서 IronPDF 사용을 시작해보세요 무료 체험
목차
- PDF 구조 정리하기
- 보조 조직
PDF 구조를 정리하세요
우선, IronPDF가 PDF 파일의 구조를 제어할 수 있도록 도와주는 일부 기능들을 살펴보겠습니다. 이러한 도구를 사용하면 PDF 문서 내의 페이지를 쉽게 조작하고 위치를 제어할 수 있습니다.
PDF 페이지를 관리하세요
PDF 문서에 새 페이지를 추가하거나, 불필요한 페이지를 삭제하거나, 특정 페이지를 복사하여 복제본을 만드는 등 다양한 방법으로 새 콘텐츠를 추가할 수 있습니다. PDF 문서 내의 페이지를 조작하면 필요에 맞게 PDF 구조를 쉽게 재구성할 수 있습니다.
페이지 추가
단 몇 줄의 코드로 PDF에 새 페이지를 추가하세요. IronPDF 사용하면 PDF 파일에 새 콘텐츠를 추가하는 것이 매우 쉽습니다.
using IronPdf;
// Import cover page
PdfDocument coverPage = PdfDocument.FromFile("coverPage.pdf");
// Import content document
PdfDocument contentPage = PdfDocument.FromFile("contentPage.pdf");
// Merge the two documents
PdfDocument finalPdf = PdfDocument.Merge(coverPage, contentPage);
finalPdf.SaveAs("pdfWithCover.pdf");using IronPdf;
// Import cover page
PdfDocument coverPage = PdfDocument.FromFile("coverPage.pdf");
// Import content document
PdfDocument contentPage = PdfDocument.FromFile("contentPage.pdf");
// Merge the two documents
PdfDocument finalPdf = PdfDocument.Merge(coverPage, contentPage);
finalPdf.SaveAs("pdfWithCover.pdf");Imports IronPdf
' Import cover page
Private coverPage As PdfDocument = PdfDocument.FromFile("coverPage.pdf")
' Import content document
Private contentPage As PdfDocument = PdfDocument.FromFile("contentPage.pdf")
' Merge the two documents
Private finalPdf As PdfDocument = PdfDocument.Merge(coverPage, contentPage)
finalPdf.SaveAs("pdfWithCover.pdf")Imports IronPdf
' Import cover page
Private coverPage As PdfDocument = PdfDocument.FromFile("coverPage.pdf")
' Import content document
Private contentPage As PdfDocument = PdfDocument.FromFile("contentPage.pdf")
' Merge the two documents
Private finalPdf As PdfDocument = PdfDocument.Merge(coverPage, contentPage)
finalPdf.SaveAs("pdfWithCover.pdf")이 방법은 새 페이지를 추가하는 과정을 간소화합니다. 특정 인덱스에 새 페이지를 추가하려면, InsertPdf 메소드를 사용하여 쉽게 이를 수행할 수 있습니다.
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);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);Imports IronPdf
' Import cover page
Private coverPage As PdfDocument = PdfDocument.FromFile("coverPage.pdf")
' Import content document
Private contentPage As PdfDocument = PdfDocument.FromFile("contentPage.pdf")
' Insert PDF
contentPage.InsertPdf(coverPage, 0)Imports IronPdf
' Import cover page
Private coverPage As PdfDocument = PdfDocument.FromFile("coverPage.pdf")
' Import content document
Private contentPage As PdfDocument = PdfDocument.FromFile("contentPage.pdf")
' Insert PDF
contentPage.InsertPdf(coverPage, 0)복사 페이지
PDF 문서 내의 페이지를 복사하면 일관된 스타일을 유지하고 여러 PDF 파일 간에 정보를 쉽게 옮길 수 있습니다. IronPDF의 CopyPage 및 CopyPages 메소드는 간단한 코드 몇 줄 만으로 특정 페이지를 복제할 수 있는 방법을 제공합니다.
using IronPdf;
using System.Collections.Generic;
// Copy a single page into a new PDF object
PdfDocument myReport = PdfDocument.FromFile("report_final.pdf");
PdfDocument copyOfPageOne = myReport.CopyPage(0);
// Copy multiple pages into a new PDF object
PdfDocument copyOfFirstThreePages = myReport.CopyPages(new List<int> { 0, 1, 2 });using IronPdf;
using System.Collections.Generic;
// Copy a single page into a new PDF object
PdfDocument myReport = PdfDocument.FromFile("report_final.pdf");
PdfDocument copyOfPageOne = myReport.CopyPage(0);
// Copy multiple pages into a new PDF object
PdfDocument copyOfFirstThreePages = myReport.CopyPages(new List<int> { 0, 1, 2 });Imports IronPdf
Imports System.Collections.Generic
' Copy a single page into a new PDF object
Private myReport As PdfDocument = PdfDocument.FromFile("report_final.pdf")
Private copyOfPageOne As PdfDocument = myReport.CopyPage(0)
' Copy multiple pages into a new PDF object
Private copyOfFirstThreePages As PdfDocument = myReport.CopyPages(New List(Of Integer) From {0, 1, 2})Imports IronPdf
Imports System.Collections.Generic
' Copy a single page into a new PDF object
Private myReport As PdfDocument = PdfDocument.FromFile("report_final.pdf")
Private copyOfPageOne As PdfDocument = myReport.CopyPage(0)
' Copy multiple pages into a new PDF object
Private copyOfFirstThreePages As PdfDocument = myReport.CopyPages(New List(Of Integer) From {0, 1, 2})페이지 삭제
PDF에서 특정 페이지를 삭제하려면, RemovePage 및 RemovePages 메소드를 사용하여 프로그래밍 방식으로 불필요한 페이지를 문서에서 제거할 수 있습니다.
using IronPdf;
using System.Collections.Generic;
PdfDocument pdf = PdfDocument.FromFile("full_report.pdf");
// Remove a single page
pdf.RemovePage(0);
// Remove multiple pages
pdf.RemovePages(new List<int> { 2, 3 });using IronPdf;
using System.Collections.Generic;
PdfDocument pdf = PdfDocument.FromFile("full_report.pdf");
// Remove a single page
pdf.RemovePage(0);
// Remove multiple pages
pdf.RemovePages(new List<int> { 2, 3 });Imports IronPdf
Imports System.Collections.Generic
Private pdf As PdfDocument = PdfDocument.FromFile("full_report.pdf")
' Remove a single page
pdf.RemovePage(0)
' Remove multiple pages
pdf.RemovePages(New List(Of Integer) From {2, 3})Imports IronPdf
Imports System.Collections.Generic
Private pdf As PdfDocument = PdfDocument.FromFile("full_report.pdf")
' Remove a single page
pdf.RemovePage(0)
' Remove multiple pages
pdf.RemovePages(New List(Of Integer) From {2, 3})위의 코드 스니펫에 대한 더 자세한 설명과 추가 기능을 탐색하려면, 저희의 종합적인 사용 방법 가이드를 참조하십시오.
PDF 병합 또는 분할
PDF 병합
IronPDF의 병합 도구를 사용하여 여러 PDF 문서를 하나의 간편하게 공유할 수 있는 PDF로 결합하세요. 이 기능은 배포를 용이하게 하기 위해 유사한 문서를 그룹화하거나, 개별 페이지를 새 PDF로 병합하거나, 기타 다양한 PDF 병합 작업을 수행할 때 특히 유용합니다. IronPDF의 병합 도구를 사용하면 Merge 메소드를 활용하여 이 과정을 손쉽게 자동화할 수 있습니다.
using IronPdf;
// Two paged PDF
const string html_a =
@"<p> [PDF_A] </p>
<p> [PDF_A] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_A] 2nd Page</p>";
// Two paged PDF
const string html_b =
@"<p> [PDF_B] </p>
<p> [PDF_B] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_B] 2nd Page</p>";
var renderer = new ChromePdfRenderer();
var pdfdoc_a = renderer.RenderHtmlAsPdf(html_a);
var pdfdoc_b = renderer.RenderHtmlAsPdf(html_b);
// Four paged PDF
var merged = PdfDocument.Merge(pdfdoc_a, pdfdoc_b);
merged.SaveAs("Merged.pdf");using IronPdf;
// Two paged PDF
const string html_a =
@"<p> [PDF_A] </p>
<p> [PDF_A] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_A] 2nd Page</p>";
// Two paged PDF
const string html_b =
@"<p> [PDF_B] </p>
<p> [PDF_B] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_B] 2nd Page</p>";
var renderer = new ChromePdfRenderer();
var pdfdoc_a = renderer.RenderHtmlAsPdf(html_a);
var pdfdoc_b = renderer.RenderHtmlAsPdf(html_b);
// Four paged PDF
var merged = PdfDocument.Merge(pdfdoc_a, pdfdoc_b);
merged.SaveAs("Merged.pdf");Imports IronPdf
' Two paged PDF
Private Const html_a As String = "<p> [PDF_A] </p>
<p> [PDF_A] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_A] 2nd Page</p>"
' Two paged PDF
Private Const html_b As String = "<p> [PDF_B] </p>
<p> [PDF_B] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_B] 2nd Page</p>"
Private renderer = New ChromePdfRenderer()
Private pdfdoc_a = renderer.RenderHtmlAsPdf(html_a)
Private pdfdoc_b = renderer.RenderHtmlAsPdf(html_b)
' Four paged PDF
Private merged = PdfDocument.Merge(pdfdoc_a, pdfdoc_b)
merged.SaveAs("Merged.pdf")Imports IronPdf
' Two paged PDF
Private Const html_a As String = "<p> [PDF_A] </p>
<p> [PDF_A] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_A] 2nd Page</p>"
' Two paged PDF
Private Const html_b As String = "<p> [PDF_B] </p>
<p> [PDF_B] 1st Page </p>
<div style = 'page-break-after: always;' ></div>
<p> [PDF_B] 2nd Page</p>"
Private renderer = New ChromePdfRenderer()
Private pdfdoc_a = renderer.RenderHtmlAsPdf(html_a)
Private pdfdoc_b = renderer.RenderHtmlAsPdf(html_b)
' Four paged PDF
Private merged = PdfDocument.Merge(pdfdoc_a, pdfdoc_b)
merged.SaveAs("Merged.pdf")PDF 분할
여러 PDF 파일을 하나의 공유하기 쉬운 PDF 문서로 병합하고 싶을 때가 있는 것처럼, 여러 페이지로 구성된 PDF 파일을 여러 개의 개별 문서로 분할하고 싶을 때도 있을 것입니다.
using IronPdf;
// We will use the 4-page PDF from the Merge example above:
var pdf = PdfDocument.FromFile("Merged.pdf");
// Takes only the first page into a new PDF
var page1doc = pdf.CopyPage(0);
page1doc.SaveAs("Page1Only.pdf");
// Take the pages 2 & 3 (Note: index starts at 0)
var page23doc = pdf.CopyPages(1, 2);
page23doc.SaveAs("Pages2to3.pdf");using IronPdf;
// We will use the 4-page PDF from the Merge example above:
var pdf = PdfDocument.FromFile("Merged.pdf");
// Takes only the first page into a new PDF
var page1doc = pdf.CopyPage(0);
page1doc.SaveAs("Page1Only.pdf");
// Take the pages 2 & 3 (Note: index starts at 0)
var page23doc = pdf.CopyPages(1, 2);
page23doc.SaveAs("Pages2to3.pdf");Imports IronPdf
' We will use the 4-page PDF from the Merge example above:
Private pdf = PdfDocument.FromFile("Merged.pdf")
' Takes only the first page into a new PDF
Private page1doc = pdf.CopyPage(0)
page1doc.SaveAs("Page1Only.pdf")
' Take the pages 2 & 3 (Note: index starts at 0)
Dim page23doc = pdf.CopyPages(1, 2)
page23doc.SaveAs("Pages2to3.pdf")Imports IronPdf
' We will use the 4-page PDF from the Merge example above:
Private pdf = PdfDocument.FromFile("Merged.pdf")
' Takes only the first page into a new PDF
Private page1doc = pdf.CopyPage(0)
page1doc.SaveAs("Page1Only.pdf")
' Take the pages 2 & 3 (Note: index starts at 0)
Dim page23doc = pdf.CopyPages(1, 2)
page23doc.SaveAs("Pages2to3.pdf")위의 코드 스니펫에 대한 더 자세한 설명과 추가 기능을 탐색하려면, 저희의 종합적인 사용 방법 가이드를 참조하십시오.
여러 페이지로 구성된 PDF 분할
여러 페이지로 구성된 PDF 파일을 분할하는 방법은 단일 페이지 PDF 파일을 분할하는 방법과 유사합니다. 이 경우에는 for 루프를 사용하여 작업을 완료하겠습니다.
using IronPdf;
PdfDocument pdf = PdfDocument.FromFile("multiPage.pdf");
for (int idx = 0; idx < pdf.PageCount; idx++)
{
// Create new document for each page
PdfDocument outputDocument = pdf.CopyPage(idx);
string fileName = @$"multiPage - Page {idx + 1}_tempfile.pdf";
// Export to new file
outputDocument.SaveAs(fileName);
}using IronPdf;
PdfDocument pdf = PdfDocument.FromFile("multiPage.pdf");
for (int idx = 0; idx < pdf.PageCount; idx++)
{
// Create new document for each page
PdfDocument outputDocument = pdf.CopyPage(idx);
string fileName = @$"multiPage - Page {idx + 1}_tempfile.pdf";
// Export to new file
outputDocument.SaveAs(fileName);
}Imports IronPdf
Private pdf As PdfDocument = PdfDocument.FromFile("multiPage.pdf")
For idx As Integer = 0 To pdf.PageCount - 1
' Create new document for each page
Dim outputDocument As PdfDocument = pdf.CopyPage(idx)
Dim fileName As String = $"multiPage - Page {idx + 1}_tempfile.pdf"
' Export to new file
outputDocument.SaveAs(fileName)
Next idxImports IronPdf
Private pdf As PdfDocument = PdfDocument.FromFile("multiPage.pdf")
For idx As Integer = 0 To pdf.PageCount - 1
' Create new document for each page
Dim outputDocument As PdfDocument = pdf.CopyPage(idx)
Dim fileName As String = $"multiPage - Page {idx + 1}_tempfile.pdf"
' Export to new file
outputDocument.SaveAs(fileName)
Next idx위의 코드 스니펫에 대한 더 자세한 설명과 추가 기능을 탐색하려면, 저희의 종합적인 사용 방법 가이드를 참조하십시오.
조직 도구
이 섹션에서는 IronPDF PDF 문서 구성을 개선하기 위해 제공하는 몇 가지 도구를 자세히 살펴보겠습니다. 이러한 도구를 활용하면 PDF 문서를 개선하여 독자가 여러 페이지로 구성된 콘텐츠를 더 쉽게 탐색할 수 있도록 만들 수 있습니다.
첨부 파일 추가 및 제거
첨부 파일을 통해 관련 문서, 콘텐츠 등을 연결하여 PDF 파일의 활용도를 높이세요. 추가 자료, 데이터 및 이미지를 특정 페이지에 포함시키면 불필요한 페이지로 문서가 복잡해지는 것을 방지하고 탐색을 더 쉽게 할 수 있습니다. IronPDF를 사용하여 첨부 파일을 손쉽게 추가하거나 제거하여 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");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");Imports IronPdf
Imports System.IO
' Import attachment file
Private fileData() As Byte = File.ReadAllBytes("path/to/file")
' Open existing PDF
Private pdf As PdfDocument = PdfDocument.FromFile("sample.pdf")
' Add attachment to the PDF
pdf.Attachments.AddAttachment("Example", fileData)
pdf.SaveAs("addAttachment.pdf")Imports IronPdf
Imports System.IO
' Import attachment file
Private fileData() As Byte = File.ReadAllBytes("path/to/file")
' Open existing PDF
Private pdf As PdfDocument = PdfDocument.FromFile("sample.pdf")
' Add attachment to the PDF
pdf.Attachments.AddAttachment("Example", fileData)
pdf.SaveAs("addAttachment.pdf")첨부파일 제거
using IronPdf;
using System.Linq;
// Open existing PDF
PdfDocument pdf = PdfDocument.FromFile("addAttachment.pdf");
// Add attachment to the PDF
PdfAttachmentCollection retrieveAttachments = pdf.Attachments;
// Remove attachment from PDF
pdf.Attachments.RemoveAttachment(retrieveAttachments.First());
pdf.SaveAs("removeAttachment.pdf");using IronPdf;
using System.Linq;
// Open existing PDF
PdfDocument pdf = PdfDocument.FromFile("addAttachment.pdf");
// Add attachment to the PDF
PdfAttachmentCollection retrieveAttachments = pdf.Attachments;
// Remove attachment from PDF
pdf.Attachments.RemoveAttachment(retrieveAttachments.First());
pdf.SaveAs("removeAttachment.pdf");Imports IronPdf
Imports System.Linq
' Open existing PDF
Private pdf As PdfDocument = PdfDocument.FromFile("addAttachment.pdf")
' Add attachment to the PDF
Private retrieveAttachments As PdfAttachmentCollection = pdf.Attachments
' Remove attachment from PDF
pdf.Attachments.RemoveAttachment(retrieveAttachments.First())
pdf.SaveAs("removeAttachment.pdf")Imports IronPdf
Imports System.Linq
' Open existing PDF
Private pdf As PdfDocument = PdfDocument.FromFile("addAttachment.pdf")
' Add attachment to the PDF
Private retrieveAttachments As PdfAttachmentCollection = pdf.Attachments
' Remove attachment from PDF
pdf.Attachments.RemoveAttachment(retrieveAttachments.First())
pdf.SaveAs("removeAttachment.pdf")위의 코드 스니펫에 대한 더 자세한 설명과 추가 기능을 탐색하려면, 저희의 종합적인 사용 방법 가이드를 참조하십시오.
개요 및 책갈피
다중 페이지 PDF 문서에서 개요를 사용하면 문서의 사용성을 크게 향상시키고 독자가 특정 페이지로 쉽게 이동할 수 있도록 도와줍니다. IronPDF를 사용하여 책갈피가 포함된 맞춤형 개요를 제작하여 독자에게 원활한 내비게이션 경험을 제공합니다. 마찬가지로 PDF 내에서 현재 북마크 목록을 가져와 개요의 현재 구조를 빠르게 확인할 수 있습니다.
즐겨찾기 추가
IronPDF 단일 레이어 및 다중 레이어 책갈피를 모두 지원하여 사용자의 특정 요구 사항과 PDF 파일 길이에 맞춰 PDF 문서 개요의 세부 정보 수준을 완벽하게 제어할 수 있도록 합니다.
using IronPdf;
// Create a new PDF or edit an existing document.
PdfDocument pdf = PdfDocument.FromFile("existing.pdf");
// Add a bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfBookmark", 0);
// Add a sub-bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfSubBookmark", 1);
pdf.SaveAs("singleLayerBookmarks.pdf");using IronPdf;
// Create a new PDF or edit an existing document.
PdfDocument pdf = PdfDocument.FromFile("existing.pdf");
// Add a bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfBookmark", 0);
// Add a sub-bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfSubBookmark", 1);
pdf.SaveAs("singleLayerBookmarks.pdf");Imports IronPdf
' Create a new PDF or edit an existing document.
Private pdf As PdfDocument = PdfDocument.FromFile("existing.pdf")
' Add a bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfBookmark", 0)
' Add a sub-bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfSubBookmark", 1)
pdf.SaveAs("singleLayerBookmarks.pdf")Imports IronPdf
' Create a new PDF or edit an existing document.
Private pdf As PdfDocument = PdfDocument.FromFile("existing.pdf")
' Add a bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfBookmark", 0)
' Add a sub-bookmark
pdf.Bookmarks.AddBookMarkAtEnd("NameOfSubBookmark", 1)
pdf.SaveAs("singleLayerBookmarks.pdf")북마크 불러오기
PDF 문서 내의 기존 책갈피를 검사하려면, GetAllBookmarks 도구를 사용하여 주어진 PDF 파일 내의 모든 책갈피 목록을 간단하게 검색할 수 있습니다.
using IronPdf;
// Load existing PDF document
PdfDocument pdf = PdfDocument.FromFile("multiLayerBookmarks.pdf");
// Retrieve bookmarks list
var mainBookmark = pdf.Bookmarks.GetAllBookmarks();using IronPdf;
// Load existing PDF document
PdfDocument pdf = PdfDocument.FromFile("multiLayerBookmarks.pdf");
// Retrieve bookmarks list
var mainBookmark = pdf.Bookmarks.GetAllBookmarks();Imports IronPdf
' Load existing PDF document
Private pdf As PdfDocument = PdfDocument.FromFile("multiLayerBookmarks.pdf")
' Retrieve bookmarks list
Private mainBookmark = pdf.Bookmarks.GetAllBookmarks()Imports IronPdf
' Load existing PDF document
Private pdf As PdfDocument = PdfDocument.FromFile("multiLayerBookmarks.pdf")
' Retrieve bookmarks list
Private mainBookmark = pdf.Bookmarks.GetAllBookmarks()위의 코드 스니펫에 대한 더 자세한 설명과 추가 기능을 탐색하려면, 저희의 종합적인 사용 방법 가이드를 참조하십시오.
결론
IronPDF 사용하면 PDF 관리가 간편해집니다. 이 도구는 페이지 관리, 문서 병합 또는 분할, 개요 작성, 첨부 파일 처리를 깨끗하고 간단한 C# 코드로 가능하게 하는 포괄적인 기능 세트를 제공합니다. 새 문서를 작성하거나 기존 문서를 재구성하는 경우, IronPDF는 탐색하기 쉽고 공유하기 쉬운 정교하고 전문적인 PDF를 쉽게 제작할 수 있도록 합니다.
IronPDF에 대해 궁금한 사항이 있거나 기능 요청을 원하시면 지원팀에 문의하시기 바랍니다. 저희는 기꺼이 도와드리겠습니다.
자주 묻는 질문
IronPDF가 PDF 파일을 정리하는 주요 목적은 무엇인가요?
IronPDF는 사용자가 책갈피, 첨부 파일을 추가하고, 병합, 분할 및 페이지를 관리하여 효율적인 PDF 정리가 가능하도록 PDF 문서의 구조를 쉽게 조작할 수 있는 도구를 제공합니다.
IronPDF를 사용하여 여러 PDF 문서를 병합할 수 있나요?
네, IronPDF는 여러 PDF 문서를 하나의 파일로 병합하여 관련 문서를 하나의 통합된 PDF로 손쉽게 통합할 수 있도록 지원합니다.
IronPDF를 사용하여 기존 PDF에 새 페이지를 어떻게 추가하나요?
IronPDF의 InsertPdf 메서드를 사용하여 새로운 페이지를 추가하고자 하는 페이지 인덱스를 지정함으로써 기존 PDF에 새 페이지를 추가할 수 있습니다.
IronPDF로 PDF 내 특정 페이지를 복사하는 것이 가능한가요?
네, IronPDF는 CopyPage 및 CopyPages 메서드를 사용하여 PDF에서 특정 페이지를 복사하도록 하여 여러 문서에 걸쳐 페이지를 중복할 수 있도록 합니다.
IronPDF를 사용하여 PDF에서 필요 없는 페이지를 제거하려면 어떻게 해야 하나요?
IronPDF는 특정 페이지를 PDF 문서에서 프로그래밍 방식으로 삭제할 수 있는 RemovePage 및 RemovePages 메서드를 제공하여 PDF 내용을 쉽게 사용자 정의할 수 있습니다.
IronPDF는 PDF 파일에 첨부 파일 추가를 지원하나요?
네, IronPDF는 PDF 파일에 첨부 파일을 추가하여 사용자가 주요 PDF를 혼란스럽게 하지 않고도 지원 문서와 추가 콘텐츠를 포함할 수 있도록 합니다.
PDF에서 아웃라인과 책갈피를 사용하는 이점은 무엇인가요?
아웃라인과 책갈피는 다중 페이지 문서에서 독자가 특정 섹션이나 페이지로 빠르게 이동할 수 있도록 하여 PDF의 활용성을 향상시킵니다.
IronPDF가 다중 페이지 PDF를 개별 문서로 분할할 수 있나요?
네, IronPDF는 루프와 CopyPage 같은 메서드를 사용하여 다중 페이지 PDF를 개별 페이지별로 개별 PDF로 분할할 수 있습니다.
IronPDF가 PDF의 탐색 구조를 개선할 수 있는 몇 가지 예는 무엇인가요?
IronPDF는 책갈피 추가, 아웃라인 생성, 서브 책갈피 통합을 통해 PDF의 콘텐츠 복잡성에 맞춘 맞춤형 탐색 구조를 제공합니다.
IronPDF는 PDF 페이지 관리를 어떻게 단순화하나요?
IronPDF는 페이지 추가, 복사 및 삭제를 위한 사용이 간편한 메서드를 통해 PDF 문서의 순서와 내용을 사용자 맞춤하는 것을 간단하게 합니다.
카이 스튜어트는 Iron Software에서 코딩에 대한 열정과 글쓰기 능력을 결합하여 일하고 있습니다. 유비 칼리지에서 소프트웨어 개발을 전공한 그는 복잡한 기술 개념을 명확하고 이해하기 쉬운 교육 콘텐츠로 풀어내는 능력을 갖추고 있습니다. 카이는 평생 학습을 중시하며 새로운 기술적 도전을 즐깁니다.