We’ll see how to remove a single page or a collection of specific page numbers from the source document using GroupDocs.Merger for .NET. This is a back-end API that can be integrated in any new or existing .NET application without any dependency.
Does it require any software installation?
Absolutely not. It doesn’t matter if MS Office or any PDF reader is installed on your computer. Using a single GroupDocs.Merger for .NET DLL you can develop a web, console or desktop application to delete the pages.
How simple is it?
Below are the steps to remove document page(s):
- Initialise RemoveOptions class with page numbers to remove
- Instantiate Merger object with source document path or stream
- Call RemovePages method and pass RemoveOptions object to it
- Call Save method and pass desired file path to save resultant document