Convert PDF to Office in PHP

To convert PDF Documents to Word format.

The Structured Output module is an optional add-on

Only available on Desktop and Server (Windows, Linux, or Mac) You can find more details about how to install the Structured Output module here .

1$wordOutputOptions = new WordOutputOptions();
2
3// Optionally convert only the first page
4$wordOutputOptions->SetPages(1, 1);
5
6// Requires the Structured Output module
7Convert::ToWord($filename, $output_filename, wordOutputOptions);

To convert PDF Documents to Excel format.

The Structured Output module is an optional add-on

Only available on Desktop and Server (Windows, Linux, or Mac) You can find more details about how to install the Structured Output module here .

1$excelOutputOptions = new ExcelOutputOptions();
2
3// Optionally convert only the first page
4$excelOutputOptions->SetPages(1, 1);
5
6// Requires the Structured Output module
7Convert::ToExcel($filename, $output_filename, excelOutputOptions);

To convert PDF Documents to PowerPoint format.

The Structured Output module is an optional add-on

Only available on Desktop and Server (Windows, Linux, or Mac) You can find more details about how to install the Structured Output module here .

1$powerPointOutputOptions = new PowerPointOutputOptions();
2
3// Optionally convert only the first page
4$powerPointOutputOptions->SetPages(1, 1);
5
6// Requires the Structured Output module
7Convert::ToPowerPoint($filename, $output_filename, powerPointOutputOptions);

Convert PDF to Office
Full sample code which shows how to convert generic PDF documents to Word, Excel, PowerPoint format

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales