PDF to TIFF - pqScan.com
C# PDF to TIFF Conversion Use .NET PDF to Image Library to Convert PDF into TIFF Image Files in C# Online Demo Download Trial Purchase Now

How to Convert PDF to TIFF in C# .NET?

back to home  >  .NET PDF to Image SDK  >  How to Convert PDF to Image in .NET  >  C# Class Code for Converting PDF to TIFF

If you are searching for .NET software for PDF to TIFF conversion in CSharp programming, you may not want to miss pqScan PDF to Image SDK for .NET. This PDF document converter library can run in various .NET programs, like ASP.NET web, .NET Windows Forms, and .NET Console applications, etc.

In the downloaded zip file, you may find and choose a "PQScan.PDFToImage.dll" based on your programming platform and .NET Framework version. pqScan .NET PDF to Image Converter Control perfectly works in 32/64-bit application under .NET 2.0 and greater. In addition, it can be fully integrated into Visual Studio C#.NET project by simply adding project reference.

How to Convert PDF to TIFF - C# Sample

This C# sample takes a local PDF as an input file and shows how to use well-developed .NET APIs to convert PDF file to TIFF images in C#.NET using PDF to image converter SDK.

using System;
using System.Drawing;
using System.Drawing.Imaging;
using PQScan.PDFToImage;

namespace PDF2TIFF
{
  class Program
  {
    static void Main(string[] args)
    {
      // Create an instance of PQScan.PDFToImage.PDFDocument object.
      PDFDocument pdfDoc = new PDFDocument();

      // Load a local PDF file.
      pdfDoc.LoadPDF("sample.pdf");

      // Obtain the total page count.
      int count = pdfDoc.PageCount;

      for (int i = 0; i < count; i++)
      {
        // Turn PDF file page to image.
        Bitmap tifImage = pdfDoc.ToImage(i);

        // Save image as tiff image file type.
        tifImage.Save("output" + i + ".tiff", ImageFormat.Tiff);
      }
    }
  }
}

This Visual C# coding example tells you how to implement rapid file conversion to TIFF image from PDF file stream. You are empowered to resize the output Tiff image in this free demo.

using System;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
using PQScan.PDFToImage;

namespace PDFToTIF
{
  class Program
  {
    static void Main(string[] args)
    {
      // Make a new instance of PQScan.PDFToImage.PDFDocument object.
      PDFDocument pdf = new PDFDocument();

      // Create a file stream with PDF message.
      FileStream stream = new FileStream("sample.pdf", FileMode.Open);

      // Load PDF from file stream.
      pdf.LoadPDF(stream);

      // Set output tif image width.
      int width = pdf.GetPageWidth(0) / 2;

      // Set output tif image height.
      int height = pdf.GetPageHeight(0) / 2;

      // Convert the first PDF page to image with the desired size.
      Bitmap tif = pdf.ToImage(0, width, height);

      // Save image to tif format.
      tif.Save("result.tiff", ImageFormat.Tiff);
    }
  }
}

convert pdf to tif in c#

Besides the free sample codes above, there is a useful guide about how to get desired size image from PDF using C#.

pqScan SDK
.NET PDF to Image Software
Online Guide
.NET PDF to Image Converting
Conversion Type
C#: Split PDF to PNG C#: Split PDF to JPEG C#: Split PDF to BMP .NET: Split PDF to GIF VB.NET: Split PDF to BMP ASP.NET: Split PDF to PNG View All Image Types >>
To find a suitable tool for our project, we did a research on available third party controls, and found that pqScan .NET PDF to Image was the easiest, reliable and complete one. We appreciate its flexibility, high speed, which offers ease of development and great support! Aaron Horne