Move Pages to PDF using PHP
Move Pages in PDF document. Use Aspose.PDF for PHP via Java to modify PDF files programmatically
How to Move pages to PDF using PHP
In order to move page from PDF file, we’ll use Aspose.PDF for PHP via Java API which is a feature-rich, powerful and easy-to-use document manipulation tool in php-java. Install Tomcat 9.0 version on any location, add Aspose.PDF.war, for more details check the GitHub page.
Move Page to PDF using PHP
To try the code in your environment, you need Aspose.PDF for PHP via Java.
- 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.