PDF BASICS

How to Remove Pages from a PDF with C# .NET & More!

Most standard PDF readers (including Adobe) do not enable certain editing options, so users are often left wondering, "How can I remove pages from a PDF?"

The good news is, depending on which software or operating system you are using, there are a few options to help you tackle this common PDF challenge.

 

In this article, we'll provide step-by-step instructions on how to remove pages from a PDF using a couple of C# .NET methods and on MAC OS.

These methods will help you regardless if you need to cut just one blank page or a whole batch of pages from your document.

3 Ways to Remove Pages in a PDF

There is more than one way to remove, delete, or leave out pages within a PDF document. Below are four methods to help cover your specific needs, working platforms, or operating systems:

 

1. Toolkit by ActivePDF, Using CopyForm (C# .NET)

If you're a developer or IT manager using Toolkit by ActivePDF, you know that this award-winning solution can do just about anything when it comes to PDF manipulation in an automated environment.

While there is no direct way to remove pages in Toolkit (yet!), you can copy all the pages you want from a PDF and simply skip the pages you don't want. This can be done by using the CopyForm call.

Here is the code sample for C# CopyForm:

ToolkitExample_CopyForm-1

For the full CopyForm code sample, visit Toolkit in GitHub: https://github.com/ActivePDF/Toolkit/blob/master/C%23/Toolkit.CopyForm.cs

 

2. Toolkit by ActivePDF, Using MergeFile (C# .NET)

The MergeFile call is another way to get creative when needing to remove PDF pages using Toolkit. With MergeFile, you can select a page range, with the option of leaving certain pages out – essentially removing the pages you don't select. 

Here is the code sample for C# MergeFile:

MergeFile_final

For the full MergeFile code sample, visit Toolkit in GitHub: https://github.com/ActivePDF/Toolkit/blob/master/C%23/Toolkit.MergeFileMulti.cs

 

Toolkit is the complete C# .NET SDK PDF tool. Try it for free today! 

Download Toolkit

 

3. Preview on Mac OS

What do you do if you're working on a Mac? Preview is a built-in viewing software available on nearly all Mac Operating Systems. Here's the simple step-by-step instructions to remove PDF pages from your Mac OS:

  1. Double-click and open your PDF file in Preview. Or, Control+Open with and select Preview
  2. Go to the View menu and click Thumbnails. The pages will now all show in a thumbnail view
  3. Select the page you want to delete. If you want to delete multiple, hold the Command button and select each page, or click and drag your mouse over a specific selection
  4. Go to Edit menu and select Delete
  5. Save

In Conclusion

Regardless if you're a developer working in C# .NET or an average user using low-code or a MAC, you have the ability to remove, cut or leave out pages from your PDF document. All you need is the right procedure for your specific needs, working platform, or operating system.

And no matter what industry you work in or the size of your organization, knowing how to remove pages from a PDF file with confidence will increase efficiency, compliancy, and the overall impact of your material.

ActivePDF's support is unsurpassed. If you still need help removing pages from your PDF, reach out to our technology advisers and we'll answer your questions, find solutions, and give you a greater turnaround time than any other company.

 

Want to do more with Toolkit? Try the new Toolkit Ultimate with added functionalities including Redaction, Extraction, and more.

Download Toolkit Ultimate

TESTIMONIALS

What People are Saying

“Implementing Toolkit was really easy to do. In fact, I only needed to read the sample, try the options, and create the template."

David Acuña

System Analyst, Beroni Informática

"Toolkit is the one solution that does everything a developer needs to create, manipulate, and print PDF files within the .NET environment."

Rob Pesce

Sr. Systems Architect, NCA Group

"This Company Is A Gem!"

Mitch Draper

Director of IT, SC Home Builders Self Insurers Fund

"In a short time, I investigated and downloaded Toolkit and within 48 hours I had replicated the basic nuts and bolts of our previous electronic billing offering."

David Rabjohns

Information Systems Manager, NHS Supply Chain

best pdf software

Talk to our experts

Want to get started? Please fill out the form below!

How can we help you?