HTML JPG PDF XML
  Product Family
PDF

Convert TIFF to PDF via C++

Export TIFF documents to multiple formats including PDF on any platform with C++ language

How to Convert TIFF to PDF Using C++

In order to convert TIFF to PDF, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C++ platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command


    PM> Install-Package Aspose.PDF

Steps to Convert TIFF to PDF via C++

C++ developers can easily load & convert TIFF files to PDF in just a few lines of code.

  1. Initialize a new Document
  2. Load input TIFF image
  3. Finally, save the output PDF file

System Requirements

Before running the C++ conversion sample 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 and Linux 64 bit.
  • Development environment like Microsoft Visual Studio.
  • Aspose.PDF for C++ DLL referenced in your project.
 

This sample code shows TIFF to PDF C++ Conversion

Initialize empty PDF document
using (Document pdfDocument = new Document())
{
    pdfDocument.Pages.Add();
    Aspose.Pdf.Image image = new Aspose.Pdf.Image();

    // Load sample BMP image file
    image.File = dataDir + "sample.tiff";
    pdfDocument.Pages[1].Paragraphs.Add(image);

    // Save output PDF document
    pdfDocument.Save(dataDir + "TIFFtoPDF.pdf");
}
 
  • Free App to Convert TIFF to PDF