This tutorial explains the step-by-step procedure to convert TIFF to PDF using C#. This guide consists of configuration details for the document conversion package, stepwise instructions, and a functional example to convert TIFF to PDF in C#. Further, you can use this guide on any of the operating systems such as MS Windows, Linux, and Mac OS.
Steps to Convert TIFF to PDF using C#
- Setup GroupDocs.Conversion for .NET package from the NuGet in the .NET application for implementing TIFF to PDF C# functionality
- Add a reference to the GroupDocs.Conversion namespace to transform PDF from TIFF
- Create an instance of the Converter class and pass TIFF to its constructor
- Create an object of the PdfConvertOptions class and set convert options for customizing the output PDF document
- Finally, save the converted PDF document to the disk by calling the Convert method of the Converter class and supplying the required arguments
The above steps help you to easily develop the convert TIFF to PDF C# capability. In the first step, set up the required package from the NuGet website and import the essential namespace to start developing the C# TIFF to PDF functionality. In the next step, load the input TIFF file by creating an instance of the Converter class and set convert options for the output PDF document by initializing the PdfConvertOptions class. Finally, save the converted PDF file to disk by invoking the Convert method.
Code to Convert TIFF to PDF using C#
We have developed the TIFF to PDF converter C# application by following the instructions defined in the previous section to demonstrate the working of this feature. As you can see, this sample code is completed by writing a couple of lines code and by consuming a few API calls. This example can be further extended by setting various parameters using the PdfConvertOptions object for customizing the output document.
We have discussed the document transformation procedure for creating the C# convert TIFF to PDF capability. Recently, we published an article to transform Word to PDF in C#, have a look at how to convert Word to PDF using C# for more information.