C# code tutorial

PDF to Image PDF Creating & Inserting PDF Digital Signature PDF Extracting PDF Processing & Editing PDF Protecting PDF Chart PDF Barcode

Popular .NET SDK


Convert pdf file to TIFF Format. You can use the converter from your web server or made it in your desktop application.

Exporting an existing PDF file to a Tagged Image File Format (TIFF) for faxing or printing purpose is a feature of XsPDF PDF to Tiff converter. Without Adobe software, you can get high-quality Tiff image from PDF document. .NET PDF to tif converting control can convert PDF pages to a range of separeted tif image files in .NET C# projects. This advantage PDF to image control is thread safe and processed in low memory.

XsPDF C#.NET PDF to Tiff converting library is a multifunctional PDF document conversion tool, which can perform PDF document to a group of high quality single page tif images in .NET develop environment using C# programming language. The converted tiff image's dpi and size can be modified by developers programmatically.

Guide in Visual Studio
  1. Download the trial package and uncompress it.
  2. Open Visual Studio, create new C# Console Application or ASP.NET web programming.
  3. Copy "XsPDF.dll", "x86" and "x64" folders from download package to your .NET project Bin folder.
  4. In the Solution Explorer right-click on "References" and select "Add Reference". Next add references to the "System.Drawing" and "XsPDF.dll".
How to Convert PDF to TIFF in C#.NET class?

It is quite easy to perform PDF to tiff image conversion in C#.NET class with XsPDF APIs. Simply load a local PDF file and convert PDF pages to single page tiff images. Various parameters is user-defined, like image resolution/DPI, original size or a specific image size.


// Create a PDF converter instance by loading a local file 
PdfImageConverter pdfConverter = new PdfImageConverter("sample.pdf");

// Set the dpi, the output image will be rendered in such resolution
pdfConverter.DPI = 96;

// the output image will be rendered to grayscale image or not
pdfConverter.GrayscaleOutput = false;

for (int i = 0; i < pdfConverter.PageCount; i++)
{
    // Convert each pdf page to a single page tiff image with original page size
    //Image pageImage = pdfConverter.PageToImage(i);
    // Convert pdf to single page tif in customized image size
    Image pageImage = pdfConverter.PageToImage(i, 500, 800);

    // Save converted image to tiff format
    pageImage.Save("Page " + i + ".tiff", ImageFormat.Tiff);
}

More Excel tutorial