How to convert and view FODP and ODP files
Introduction
FODP is Flat Open Document Presentation in XML format for presentations. It can be opened with LibreOffice (OpenOffice) Impress.
ODP is Open Document Presentation too, but it formatted using the OASIS XML-based OpenDocument standard and consists of an archive with a set of files and a manifest file.
How to convert FODP(ODP) files
Convert FODP(ODP) to HTML
To convert FODP(ODP) files to HTML with GroupDocs.Viewer for Java use following code:
try (Viewer viewer = new Viewer("sample.fodp")) {
HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources("output.html");
viewer.view(options);
}
The following screenshot shows the output HTML file opened in a browser.
Convert FODP(ODP) to JPG
To convert FODP(ODP) files to JPG with GroupDocs.Viewer for Java use following code:
try (Viewer viewer = new Viewer("sample.fodp")) {
JpgViewOptions options = new JpgViewOptions("output.jpg");
viewer.view(options);
}
The following screenshot shows the output JPG file opened in a Windows Photo Viewer application.
Convert FODP(ODP) to PNG
To convert FODP(ODP) files to PNG with GroupDocs.Viewer for Java use following code:
try (Viewer viewer = new Viewer("sample.fodp")) {
PngViewOptions options = new PngViewOptions("output.png");
viewer.view(options);
}
The following screenshot shows the output PNG file opened in a Windows Photo Viewer application.
Convert FODP(ODP) to PDF
To convert FODP(ODP) files to PDF with GroupDocs.Viewer for Java use following code:
try (Viewer viewer = new Viewer("sample.fodp")) {
PdfViewOptions options = new PdfViewOptions("output.pdf");
viewer.view(options);
}
The following screenshot shows the output PDF file opened in an Acrobat Reader.
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example
- GroupDocs.Viewer for .NET samples, plugins and showcase
- Document Viewer for .NET MVC UI Example
Free Online App
Along with full-featured Java library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.