Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
string filePath = @"c:\sample.pdf";
string filePathOut = @"c:\output\result.pdf";
// Resultant document will contain pages 1 and 3
ExtractOptions extractOptions = new ExtractOptions(new int[] { 1, 3 });
using (Merger merger = new Merger(filePath))
{
merger.ExtractPages(extractOptions);
merger.Save(filePathOut);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.