DOCX
JPG
PDF
XML
POTX
PNG
Convert POTX to PNG in C++
Convert POTX to PNG using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert POTX to PNG Using C++
To convert POTX to PNG, use Aspose.Slides for C++ , a presentation processing API for C++ applications. You can download the latest version directly from NuGet , search for Aspose.Slides.Cpp, and install it. You may also use the following command from the Package Manager Console.
Command
PM> Install-Package Aspose.Slides.Cpp
How to Convert POTX to PNG via C++
C++ developers can convert a POTX file to PNG in just a few lines of code.
- Create a
Presentationinstance from the source POTX file. - Get the first slide from the presentation.
- Set the output image size.
- Render the slide to an image.
- Save the image as a PNG file.
System Requirements
Before running the C++ conversion example code, make sure that you have the following prerequisites.
- Microsoft Windows or a compatible OS with C++ runtime environment for Windows 32-bit, Windows 64-bit, or Linux 64-bit.
- Aspose.Slides for C++ DLL referenced in your project.
POTX to PNG C++ Conversion Source Code
auto presentation = MakeObject<Presentation>(u"presentation.potx");
auto slide = presentation->get_Slide(0);
auto desiredSize = Size(1200, 800);
auto image = slide->GetImage(desiredSize);
image->Save(u"slide.png", ImageFormat::Png);
image->Dispose();
presentation->Dispose();
Free App to Convert POTX to PNG
Convert presentations and slides online.
Other Supported Conversions
You can also convert POTX into other file formats, including:
POTX TO BMP (Bitmap Image)
POTX TO EMF (Enhanced Metafile Format)
POTX TO GIF (Graphical Interchange Format)
POTX TO HTML (Hyper Text Markup Language)
POTX TO JPEG (JPEG Image)
POTX TO ODP (OpenDocument Presentation Format)
POTX TO OTP (OpenDocument Standard Format)
POTX TO PDF (Portable Document Format)
POTX TO POT (Microsoft PowerPoint Template Files)
POTX TO POTM (Microsoft PowerPoint Template File)
POTX TO PPS (PowerPoint Slide Show)
POTX TO PPSM (Macro-enabled Slide Show)
POTX TO PPSX (PowerPoint Slide Show)
POTX TO PPT (Microsoft PowerPoint 97-2003)
POTX TO PPTM (Macro-enabled Presentation File)
POTX TO PPTX (Open XML presentation Format)
POTX TO SVG (Scalable Vector Graphics)
POTX TO TIFF (Tagged Image Format)
POTX TO XML (Extensible Markup Language)
POTX TO XPS (XML Paper Specifications)