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:

    Viewer viewer = new Viewer("sample.fodp");
    HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources("output.html");
    viewer.view(options);
    viewer.close();

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: 

    Viewer viewer = new Viewer("sample.fodp");
    JpgViewOptions options = new JpgViewOptions("output.jpg");
    viewer.view(options);
    viewer.close();

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: 

    Viewer viewer = new Viewer("sample.fodp");
    PngViewOptions options = new PngViewOptions("output.png");
    viewer.view(options);
    viewer.close();

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: 

    Viewer viewer = new Viewer("sample.fodp");
    PdfViewOptions options = new PdfViewOptions("output.pdf");

    viewer.view(options);
    viewer.close();

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:

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.