Convert PDF to Excel Workbook in PHP

Aspose.PDF - Convert PDF to Excel Workbook

To convert PDF document to Excel Workbook using Aspose.PDF Java for PHP, simply invoke PdfToExcel module.

PHP Code

# Open the target document
$pdf = new Document($dataDir . 'input1.pdf');

# Instantiate ExcelSave Option object
$excelsave = new ExcelSaveOptions();

# Save the output to XLS format
$pdf->save($dataDir . "Converted_Excel.xls", $excelsave);

print "Document has been converted successfully" . PHP_EOL;

Download Running Code

Download Convert PDF to Excel Workbook (Aspose.PDF) from any of the below mentioned social coding sites: