PHP via COM Interop

Hello World!



echo "<h2>Calling Aspose.PDF for .NET from PHP using COM Interoperatibility</h2>";

echo "<h3>PDF to Excel Conversion</h3>";

//set license

$lic = new COM("Aspose.PDF.License");


//Load Pdf Document


$helper = new COM("Aspose.PDF.ComHelper");

$pdf = $helper->OpenFile($input);

// Save the PDF document  to desired file format by passing  SaveFormat enum value for the format in this case we pass 9 for excel.

$output = "C:/temp/test_php.xls";