DOCX JPG PDF XML TIFF
Product Family
XML

Convert TIFF to PowerPoint XML Presentation in C++

Use C++ to place a TIFF image on a slide and export it to XML without Microsoft PowerPoint.

Convert TIFF to PowerPoint XML Presentation Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you place TIFF images on slides and export the resulting presentation to PowerPoint XML Presentation in C++ applications without Microsoft PowerPoint. Install the package from NuGet or use the following Package Manager Console command.

Command

PM> Install-Package Aspose.Slides.Cpp

TIFF to XML C++ Conversion Source Code

auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto slideSize = presentation->get_SlideSize()->get_Size();

auto imageData = File::ReadAllBytes(u"image.tiff");
auto presentationImage = presentation->get_Images()->AddImage(imageData);
slide->get_Shapes()->AddPictureFrame(
    ShapeType::Rectangle,
    0,
    0,
    slideSize.get_Width(),
    slideSize.get_Height(),
    presentationImage);

presentation->Save(u"image.xml", SaveFormat::Xml);
presentation->Dispose();
 

How to Convert TIFF to PowerPoint XML Presentation via C++

C++ developers can convert a TIFF file to PowerPoint XML Presentation by creating a presentation, adding the TIFF image to a slide, and then using Aspose.Slides for C++ to save the presentation as a PowerPoint XML Presentation file.

  1. Create a Presentation instance.
  2. Read the TIFF file bytes with File::ReadAllBytes.
  3. Add the TIFF image to the first slide with AddPictureFrame.
  4. Call Save with SaveFormat::Xml and the output file path.

System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

  • Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
  • Aspose.Slides for C++ referenced in your project.

Other Supported Conversions

You can also convert TIFF into many other file formats.

TIFF TO BMP (Bitmap Image)
TIFF TO EMF (Enhanced Metafile Format)
TIFF TO GIF (Graphics Interchange Format)
TIFF TO HTML (Hypertext Markup Language)
TIFF TO JPEG (JPEG Image)
TIFF TO ODP (OpenDocument Presentation Format)
TIFF TO OTP (OpenDocument Presentation Template)
TIFF TO PDF (Portable Document Format)
TIFF TO PNG (Portable Network Graphics)
TIFF TO POT (PowerPoint 97–2003 Template)
TIFF TO POTM (PowerPoint Macro-Enabled Template)
TIFF TO POTX (PowerPoint Template)
TIFF TO PPS (PowerPoint Slide Show)
TIFF TO PPSM (Macro-enabled Slide Show)
TIFF TO PPSX (PowerPoint Slide Show)
TIFF TO PPT (PowerPoint 97-2003 Presentation)
TIFF TO PPTM (Macro-enabled Presentation File)
TIFF TO PPTX (Open XML Presentation Format)
TIFF TO SVG (Scalable Vector Graphics)
TIFF TO XPS (XML Paper Specification)