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.
Converting presentations with shapes and text with 3-D effects
Starting from v20.10 GroupDocs.Viewer for .NET 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 .NET use following code:
using (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.
Converting to JPEG
To convert presentations with 3-D effects to JPEG with GroupDocs.Viewer for .NET use following code:
using (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.
Converting to PNG
To convert presentations with 3-D effects to PNG with GroupDocs.Viewer for .NET use following code:
using (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.
Converting to PDF
To convert presentations with 3-D effects to PDF with GroupDocs.Viewer for .NET use following code:
using (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.
More resources
View PowerPoint Files Online
Along with full-featured .NET library we provide simple but powerful free online Apps. View PPT, PPTX, and ODP presentations online with GroupDocs Viewer App.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- 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