HTML
JPG
PDF
SVG
PPT
PPTX
Convert ODP to PPTX in PHP
Export ODP presentations as PowerPoint PPTX files with Aspose.Slides for PHP via Java
Convert ODP to PPTX in PHP
Use Aspose.Slides for PHP via Java to load an ODP presentation and export it as a PowerPoint Open XML PPTX file.
Call save with SaveFormat::Pptx to create the output file. You can also test ODP conversion in your
browser
.
You can install the library from Composer using the following command:
Console/Terminal
composer require aspose/slides
This sample code shows ODP to PPTX PHP Conversion
$presentation = new Presentation("input.odp");
try {
$presentation->save("output.pptx", SaveFormat::Pptx);
} finally {
$presentation->dispose();
}
How to Convert ODP to PPTX in PHP
These are the steps to convert an ODP file to PPTX using PHP.
Load the ODP file with the
Presentationclass.Call
savewith the output file path andSaveFormat::Pptx.The PPTX file is written to the specified path.
System Requirements
Before running the PHP conversion example, make sure that you have the following prerequisites.
- Install PHP 7 or later, add the PHP directory to the system
PATH, and setallow_url_includetoOnin thephp.inifile. - Install JRE 8 and set the
JAVA_HOMEenvironment variable to the installed JRE directory. - Install and configure Apache Tomcat with PHP/Java Bridge as described in the installation guide .
Save ODP as PPTX in PHP
Use the free app to see a demonstration of the ODP-to-PPTX conversion process.Free App to Convert ODP to PPTX
Other Supported Conversions
You can also convert ODP to many other file formats. See other supported conversions below:
ODP TO BMP (Bitmap Image)
ODP TO FODP (OpenDocument Flat XML Presentation)
ODP TO GIF (Graphics Interchange Format)
ODP TO HTML (Hypertext Markup Language)
ODP TO JPG (JPEG Image)
ODP TO OTP (OpenDocument Presentation Template)
ODP TO PDF (Portable Document Format)
ODP TO PNG (Portable Network Graphics)
ODP TO POT (PowerPoint 97–2003 Template)
ODP TO POTM (PowerPoint Macro-Enabled Template)
ODP TO POTX (PowerPoint Template)
ODP TO PPS (PowerPoint Slide Show)
ODP TO PPSM (Macro-enabled Slide Show)
ODP TO PPSX (PowerPoint Slide Show)
ODP TO PPT (PowerPoint 97-2003 Presentation)
ODP TO PPTM (Macro-enabled Presentation File)
ODP TO SVG (Scalable Vector Graphics)
ODP TO SWF (SWF Format)
ODP TO TIFF (Tagged Image File Format)
ODP TO XPS (XML Paper Specification)