在 PHP 中将 Excel 转换为 PDF
Contents
[
Hide
]
Aspose.Cells - Excel 到 PDF 转换
将 Microsoft Excel 文件转换为 PDF
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;
下载运行代码
下载**Excel 到 PDF 转换 (Aspose.Cells)**来自以下任何社交编码网站: