Delete a Particular Page from the PDF File In PHP
Contents
[
Hide
]
Aspose.PDF - Delete Page
To delete a Particular Page from the PDF document using Aspose.PDF Java for PHP, simply invoke DeletePage class.
PHP Code
# Open the target document
$pdf = new Document($dataDir . 'input1.pdf');
# delete a particular page
$pdf->getPages()->delete(2);
# save the newly generated PDF file
$pdf->save($dataDir . "output.pdf");
print "Page deleted successfully!";
Download Running
Download Delete Page (Aspose.PDF) from any of the below mentioned social coding sites: