Converting presentations with shapes and text with 3-D effects

Presentation files such as PPTX may contain text and shapes with 3-D effects applied to them. The following screenshot shows the presentation in PowerPoint and text with an applied 3-D effect.

Presentation with 3-D text

Converting presentations with shapes and text with 3-D effects

Starting from v20.10 GroupDocs.Viewer supports rendering text and shapes with 3-D effects. Before v20.10 3-D text and shapes rendered as flat elements. Let’s take this sample presentation and convert it to HTML/PNG/JPEG and PDF.

Convert to HTML

To convert presentations with 3-D effects to HTML with GroupDocs.Viewer for Java use following code:

    try (Viewer viewer = new Viewer("3-d-text.pptx")) {
        HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources("output.html");
        viewer.view(options);
    }

The following screenshot shows the output HTML file opened in a browser.

3-d-text.pptx to PNG

Converting to JPEG

To convert presentations with 3-D effects to JPEG with GroupDocs.Viewer for Java use following code:

    try (Viewer viewer = new Viewer("3-d-text.pptx")) {
        JpgViewOptions options = new JpgViewOptions("output.jpg");
        viewer.view(options);
    }

The following screenshot shows the output JPG file opened in a Windows Photo Viewer application.

3-d-text.pptx to JPEG

Converting to PNG

To convert presentations with 3-D effects to PNG with GroupDocs.Viewer for Java use following code:

    try (Viewer viewer = new Viewer("3-d-text.pptx")) {
        PngViewOptions options = new PngViewOptions("output.png");
        viewer.view(options);
    }

The following screenshot shows the output PNG file opened in a Windows Photo Viewer application.

3-d-text.pptx to PNG

Converting to PDF

To convert presentations with 3-D effects to PDF with GroupDocs.Viewer for Java use following code:

    try (Viewer viewer = new Viewer("3-d-text.pptx")) {
        PdfViewOptions options = new PdfViewOptions("output.pdf");
        viewer.view(options);
    }

The following screenshot shows the output PDF file opened in an Acrobat Reader.

3-d-text.pptx to PDF

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.