Last active
October 17, 2019 08:47
-
-
Save GroupDocsGists/4ed9531e8c9047ac0d39d2c38dd63a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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