Related blog post: Rearranging PDF Pages using C#
Last active
February 23, 2022 07:07
-
-
Save GroupDocsGists/a02ebe5ab882ca7a519891925490e1bb to your computer and use it in GitHub Desktop.
Rearranging PDF Pages using C#
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
// Rearrange pages of PDF document using C# | |
int pageNumber = 6; | |
int newPageNumber = 1; | |
MoveOptions moveOptions = new MoveOptions(pageNumber, newPageNumber); | |
using (Merger merger = new Merger("path\document.pdf")) | |
{ | |
merger.MovePage(moveOptions); | |
merger.Save("path\rearranged-document.pdf"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment