Excel a PDF Conversión en PHP

Aspose.Cells - Conversión de Excel a PDF

Convertir Microsoft Archivo de Excel a PDF

Código PHP

         $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;

Descargar código de ejecución

Descargar**Conversión de Excel a PDF (Aspose.Cells)**de cualquiera de los sitios de codificación social mencionados a continuación: