How to C#: Tiff
Using Tiff SDK for C#.NET
Convert Tiff to Scanned PDF
Convert Tiff to Scanned PDF
  |  
Home ›› XDoc.Tiff ›› C# Tiff: Tiff to PDF

C# TIFF - Convert TIFF to PDF in C#.NET


Guide for Converting TIFF File to PDF Document in C#.NET Programming




Convert TIFF to PDF in C#.NET Overview



Using our TIFF to PDF Conversion SDK for C#.NET, developers are able to transform single-page or multi-page TIFF file to scanned PDF document using C# demo code within just a few seconds. This C# Conversion SDK is designed to fulfill the needs of both software developers and end users who are searching for both single and batch image and document file conversion solutions for C#.NET application. Our C# TIFF to PDF Conversion SDK can be used in Visual Studio from version 2005 to 2013. It runs well in .NET Framework 2.0 and later versions. And it is compatible with many commonly used Windows operating systems.


Related .net document control helps:
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net dicom web viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net edit pdf text color: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net excel view: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net image viewer jquery: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery


Portable Document Format (PDF) is now an open standard for electronic document exchange maintained by the International Organization for Standardization (ISO). Clickable links and buttons, form fields and video can be inserted into a PDF file without quality loss. Documents, forms, graphics and web pages can be converted to PDF while preserving content and format of the original file. Document-level and page-level file attachments can be added to existing PDF document and the reader will access, open and save them to local file system.




Convert TIFF to Adobe PDF in C#.NET Demo



Add references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Processing.dll


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.PDF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.TIFF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


If using x86, the platform target should be x86.


The code table below includes the API and free demo code for converting Tiff image file to PDF document in C# programming application.




// Load a Tiff image from file.
TIFFDocument doc = new TIFFDocument(@"demo1.tif");
if (null == doc)
        throw new Exception("Fail to load TIFF Document");

// Convert Tiff to PDF and save PDF as file.
// You can also save rendered PDF as stream or byte array.
doc.ConvertToDocument(DocumentType.PDF, @"output.pdf");




public override void ConvertToDocument(DocumentType targetType, string filePath)

Description:
Convert TIFF file to PDF file, and save it to the given file path.

Parameters:
public override void ConvertToDocument(DocumentType targetType, Stream stream)

Description:
Convert TIFF file to PDF file, and save it to the stream.

Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, string filePath)

Description:
Convert TIFF file to PDF file with specified zoom value, and save it to the given file path.

Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, Stream desStream)

Description:
Convert TIFF file to PDF file with specified zoom value, and save it to the stream.

Parameters:
public override void ConvertToDocument(DocumentType targetType, ImageCompress compression, string filePath)

Description:
Convert TIFF file to PDF file with specified compression and save it to the given file path.

Parameters:
public override void ConvertToDocument(DocumentType targetType, ImageCompress compression, Stream desStream)

Description:
Convert TIFF file to PDF file with specified compression and save it to the stream

Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, string filePath)

Description:
Convert TIFF file to PDF file with specified resolution and save it to the given file path.

Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, Stream desStream)

Description:
Convert TIFF file to PDF file with specified resolution and save it to the stream.

Parameters:
public override void ConvertToDocument(DocumentType targetType, string filePath, ImageOutputOption options)

Description:
Convert TIFF file to PDF file with optional settings and save it to the given file path.

Parameters:
public override void ConvertToDocument(DocumentType targetType, Stream desStream, ImageOutputOption options)

Description:
Convert TIFF file to PDF file with optional settings and save it to the stream.

Parameters: