Merge TIFF to PDF in C++

High-speed and cross-platform C++ library for merging TIFF to PDF files using C++ code

Merge TIFF to PDF using Aspose.Slides

Aspose.Slides for C++ is a powerful C++ library used to create, convert, merge, and manipulate presentations, PDFs, images, and other files. When you merge TIFF to PDF, you are effectively combining images to obtain a single PDF file.

Merge TIFF to PDF in C++

Using Aspose.Slides for C++ , you can merge TIFF to PDF quickly with just a few lines of code

C++ code for merging TIFF to PDF


auto pres = System::MakeObject<Presentation>();
        
auto image1 = pres->get_Images()->AddImage(File::ReadAllBytes(u"image1.tiff"));
pres->get_Slides()->idx_get(0)->get_Shapes()->AddPictureFrame(ShapeType::Rectangle, 0.0f, 0.0f, 100.0f, 100.0f, image1);
auto image2 = pres->get_Images()->AddImage(File::ReadAllBytes(u"image2.tiff"));
pres->get_Slides()->idx_get(0)->get_Shapes()->AddPictureFrame(ShapeType::Rectangle, 0.0f, 200.0f, 100.0f, 100.0f, image2);

pres->Save(u"pres.pdf", SaveFormat::Pdf);

How to merge TIFF to PDF in C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Add the library as a reference in your project.

  3. Create an instance of the Presentation class.

  4. Load the TIFF files you want to merge as picture frames.

  5. Save the resulting PDF.

Merge PDF Files Online

How to Merge PDF in Python