IronPDF How-Tos Add, Copy & Delete PDF Pages How to Add, Copy, and Delete Pages in PDFs Jordi Bardia Updated:June 22, 2025 Adding pages to a PDF involves the insertion of new content, like text, images, or existing PDF pages, into the document. Copying pages in a PDF means duplicating one or more pages within the same document or from one PDF file to another. Deleting pages from a PDF involves the removal of unwanted pages from the document. Pages can be added to, copied out of, and deleted from any PDF document, and IronPDF provides all the tools necessary to make this easy and fast. How to Add, Copy, and Delete Pages of a PDF in C# Download the IronPDF Library for C# Add pages to PDF using the Merge and InsertPdf methods Copy pages from PDF using the CopyPage and CopyPages methods Delete pages from PDF using the RemovePage and RemovePages methods Save and export your PDF Get started with IronPDF Start using IronPDF in your project today with a free trial. First Step: Start for Free Add Pages to a PDF Adding a page to a PDF can be done in one line of code. In this example, a PDF of a report is generated and a cover page will be added to the start of it. To combine both PDFs, the Merge method is used. Let's take these two PDF documents for our example: download coverPage.pdf and download contentPage.pdf. :path=/static-assets/pdf/content-code-examples/how-to/add-copy-delete-pages-pdf-add.cs 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") $vbLabelText $csharpLabel When we run the code above, we get a single PDF file as output, which has the cover page at the front: We can also add a page at any index of the PDF using the InsertPdf method. In this example, I achieve the above effect by inserting 'coverPage.pdf' at the beginning of 'contentPage.pdf'. :path=/static-assets/pdf/content-code-examples/how-to/add-copy-delete-pages-pdf-insert.cs 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) $vbLabelText $csharpLabel Copy Pages from a PDF To copy pages from a PDF, simply call either the CopyPage or CopyPages methods. These are used to copy single and multiple pages, respectively. The methods return the PdfDocument object containing the specified pages. :path=/static-assets/pdf/content-code-examples/how-to/add-copy-delete-pages-pdf-copy.cs 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}) $vbLabelText $csharpLabel Delete Pages in a PDF To delete pages from a PDF, you can call either the RemovePage or RemovePages methods. These are used to delete single and multiple pages, respectively. :path=/static-assets/pdf/content-code-examples/how-to/add-copy-delete-pages-pdf-delete.cs 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}) $vbLabelText $csharpLabel Ready to see what else you can do? Check out our tutorial page here: Organize PDFs Frequently Asked Questions How can I add a cover page to a PDF report in C#? You can add a cover page to a PDF report by using the Merge method to combine the cover page PDF with your existing report PDF in C#. What is the method to insert pages at a specific index in a PDF? To insert pages at a specific index in a PDF, use the InsertPdf method, which allows you to specify the exact position where the new page should be inserted. How do I duplicate pages within a PDF using C#? To duplicate pages within a PDF using C#, use the CopyPage method for single pages or CopyPages method for multiple pages to create copies of the desired pages. What steps should I take to remove unwanted pages from a PDF in C#? To remove unwanted pages from a PDF in C#, utilize the RemovePage method for single pages or RemovePages method for multiple pages to delete them from the document. Can I save a modified PDF after making changes such as adding or deleting pages? Yes, after making changes like adding or deleting pages, you can save the modified PDF using the SaveAs method to store the updated document. What are the prerequisites for manipulating PDF pages in a C# project? To manipulate PDF pages in a C# project, first download the IronPDF library from NuGet and include it in your project to access the necessary functionality. Is it possible to merge two PDF documents into one using C#? Yes, you can merge two PDF documents into one using the Merge method, which combines multiple PDF files into a single document. How can I quickly add pages to a PDF in C#? To quickly add pages to a PDF in C#, use the Merge method to append new PDF documents or the InsertPdf method to insert pages at specific indexes. What programming language is used for the PDF manipulation tutorial? The tutorial for manipulating PDF pages uses C# to demonstrate how to add, copy, and delete PDF pages programmatically. Where can I find example PDF files for practicing page manipulation? Example PDF files such as 'coverPage.pdf' and 'contentPage.pdf' can be downloaded from the links provided in the tutorial for practice. Jordi Bardia Chat with engineering team now Software Engineer Jordi is most proficient in Python, C# and C++, when he isn’t leveraging his skills at Iron Software; he’s game programming. Sharing responsibilities for product testing, product development and research, Jordi adds immense value to continual product improvement. The varied experience keeps him challenged and engaged, and he ...Read More Ready to Get Started? Free NuGet Download Total downloads: 15,080,714 View Licenses