Convert TIFF to PDF
In this article I going to show how to convert a TIFF file to PDF file in C#.
First of all We need to create Console Project with .NET Framework 4.2.7. I named It "ConvertTifToPDF".
Then add "PDFSharp" Nuget Package.
That DLL is Open source and free to use, here is the site link just in case more info needed.
This is the code you need to add, as you can see there is a method "ToPDF" it need the params.
- Folder: Folder path where TIF file is located.
- Tiff file name: Tiff file name.
- PDF file name: Name of the new PDF.
As you can noticed a TIFF file is necessary in "SampleFile" folder.
Download the entire example from GIT and test it.
Sé productivo. Sé extraordinario. Sé INAVANT.