Some test text!
Php / Guides / Convert PDF to MS Office
Convert PDFs to MS Office (DOCX, XLSX, PPTX) without any external third party dependencies.
lib
and then reference it in the below sample.This sample demonstrates how to convert from a PDF to DOCX file.
$wordOutputOptions = new WordOutputOptions();
// Optionally convert only the first page
$wordOutputOptions->SetPages(1, 1);
// Requires the Structured Output module
Convert::ToWord($filename, $output_filename, wordOutputOptions);
This sample demonstrates how to convert from a PDF to PPTX file.
$powerPointOutputOptions = new PowerPointOutputOptions();
// Optionally convert only the first page
$powerPointOutputOptions->SetPages(1, 1);
// Requires the Structured Output module
Convert::ToPowerPoint($filename, $output_filename, powerPointOutputOptions);
This sample demonstrates how to convert from a PDF to XLSX file.
$excelOutputOptions = new ExcelOutputOptions();
// Optionally convert only the first page
$excelOutputOptions->SetPages(1, 1);
// Requires the Structured Output module
Convert::ToExcel($filename, $output_filename, excelOutputOptions);
Convert PDF files to MS Office
Full sample code which illustrates how to convert PDF to MS Office files (Word, Excel, PowerPoint).
Get the answers you need: Chat with us