Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// For complete examples and data files, please go to https://github.com/GroupDocs-Merger/GroupDocs.Merger-for-Java
InputStream documentExample = new FileInputStream("./Data/Storage/sample.pdf");
// Specify current and new page numbers
int pageNumber = 6;
int newPageNumber = 1;
// Main method.
DocumentResult result = new DocumentHandler().movePage(documentExample, pageNumber, newPageNumber);
// Save the resultant document
CommonUtilities.saveDocument("./Data/Output/result.pdf",result.getStream());
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.