Move Pages to PDF via Java
Move Pages in PDF document. Use Aspose.PDF for Java to modify PDF files programmatically
How to Move pages to PDF Using Java
In order to move page, we’ll use Aspose.PDF for Java API which is a feature-rich, powerful and easy to use conversion API for Java platform. You can download its latest version directly from Maven and install it within your Maven-based project by adding the following configurations to the pom.xml.
Move Page to PDF via Java
You need Aspose.PDF for Java to try the code in your environment.
- Create a Document object with the input PDF file.
- Get Page from the the PageCollection collection’s.
- Save the output PDF using the Save method.
- Add page to the destination document. Save output file.
- Delete page in source document.
- Save the source PDF using the Save method.