Convert PowerPoint PPTX/PPT to TIFF using C++

Convert PowerPoint PPTX/PPT to TIFF using C++

Tagged Image File Format (TIFF) is an image format that is commonly used for print purposes due to its high quality. There might be cases where you need to convert your PPTX/PPT files to TIFF format for printing purposes. For that, this article will teach you how to convert PowerPoint PPTX/PPT files to TIFF format programmatically using C++.

TIP: You may want to check out Aspose FREE online PowerPoint to Poster Converter.

C++ API for Converting PowerPoint PPTX/PPT Files to TIFF Format

Aspose.Slides for C++ is a C++ API for working with PowerPoint files. It enables you to create, read and modify PPT and PPTX files without needing additional software. Furthermore, the API supports converting PPTX/PPT files to TIFF image format. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

Convert PowerPoint Files to TIFF Format using C++

You can convert your PowerPoint PPTX/PPT files to TIFF format in just a few lines of code. To achieve that, please follow the steps given below.

The following sample code shows how to convert PowerPoint files to TIFF format using C++.

Converting PowerPoint Files to TIFF Format with Custom Image Size

The following are the steps to convert PowerPoint files to TIFF format with custom image size.

The following sample code shows how to convert PowerPoint files to TIFF images with custom image size using C++.

Convert PowerPoint Files to TIFF Format with Custom Pixel Format

In order to set the pixel format, we will use the ImagePixelFormat enum. The ImagePixelFormat enum provides the following values.

  • Format1bppIndexed: 1 bit per pixel, indexed
  • Format4bppIndexed: 4 bits per pixel, indexed
  • Format8bppIndexed: 8 bits per pixel, indexed
  • Format24bppRgb: 24 bits per pixel, RGB
  • Format32bppArgb: 32 bits per pixel, ARGB

The following are the steps to convert a PPTX/PPT file to a TIFF image with custom pixel format using C++.

The following sample code shows how to convert PowerPoint files to TIFF images with custom pixel format using C++.

Get a Free License

In order to try the API without evaluation limitations, you can request a free temporary license.

Conclusion

In this article, you have learned how to convert PowerPoint PPTX/PPT files to TIFF images using C++. Furthermore, you have learned how to set the custom image size and pixel format for the generated TIFF images. Aspose.Slides for C++ is a powerful API for working with PowerPoint files. You can explore the API in detail by visiting the official documentation. In case of any queries, please feel free to reach us at our free support forum.

See Also