GroupDocs.Merger provides an ability to remove single page or a collection of specific page numbers from the source document. Here are the steps to remove document page(s):
Warning
Specify at least one page number. Calling RemovePages without page numbers (for example, with new RemoveOptions()) throws GroupDocsMergerException (“There are no page numbers to remove.”).
Initialise RemoveOptions class with page numbers to remove;
Instantiate Merger object with source document path or stream;