Excel till PDF Konvertering i PHP

Aspose.Cells - Konvertering av Excel till PDF

Konvertera Microsoft Excel-fil till PDF

PHP-kod

         $dataDir = '';

        // Create Aspose.Cells Helper Object

        $ptr = new \COM('Aspose.Cells.Interop.InteropHelper');

        // Opening through Path

        // Creating a Workbook object and opening an Excel file using its file path

        $workbook = $ptr->New("Aspose.Cells.Workbook",array($dataDir . '/Book1.xls'));

        $ptr->Call($workbook,"Save",array($dataDir."/outBook1.pdf"));

        print "Conversion Completed" . PHP_EOL;

Ladda ner Running Code

Ladda ner**Konvertering av Excel till PDF (Aspose.Cells)**från någon av nedan nämnda webbplatser för social kodning: