Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// For complete examples and data files, please go to
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
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.