PDF to TIFF Converter

The Documentize PDF to TIFF Converter for .NET is a powerful tool designed to convert PDF documents into high-quality TIFF images. This plugin ensures that your content is accessible across various platforms while maintaining excellent fidelity and versatility.

Key Features:

  • Convert PDF to TIFF: Effortlessly convert entire PDF documents or specific pages into TIFF images.
  • Custom Resolution: Adjust the resolution (e.g., 300 dpi) for superior quality outputs.
  • Multi-Page TIFF: Combine multiple PDF pages into a single multi-page TIFF file.
  • Page Range: Convert specific pages or ranges for precise results.
  • Batch Processing: Convert multiple PDF documents or pages at once.
  • Quick Conversion: Fast and efficient process with minimal effort.

How to Convert PDF Pages to TIFF

To convert a PDF document into TIFF images, follow these steps:

  1. Create an instance of the TiffConverter class.
  2. Create an instance of PdfToTiffOptions to configure the conversion process.
  3. Add the input PDF file using the AddInput method.
  4. Specify the output file path for the TIFF images using the AddOutput method.
  5. Run the Process method to convert the PDF pages into TIFF images.
 1var converter = new TiffConverter();
 2var options = new PdfToTiffOptions();
 3
 4// Add the input PDF file
 5options.AddInput(new FileDataSource(@"C:\Samples\input.pdf"));
 6
 7// Specify output file for TIFF images
 8options.AddOutput(new FileDataSource(@"C:\Samples\output.tiff"));
 9
10// Process the PDF to TIFF conversion
11converter.Process(options);

Customizing PDF to TIFF Conversion

You can customize the conversion process by adjusting resolution, enabling multi-page output, or selecting page ranges. Here’s how to convert the first page of a PDF at 300 dpi into a TIFF file:

 1var converter = new TiffConverter();
 2var options = new PdfToTiffOptions();
 3
 4// Set output resolution to 300 dpi and convert only the first page
 5options.OutputResolution = 300;
 6options.PageList = new List<int> { 1 };
 7
 8// Add input and output paths
 9options.AddInput(new FileDataSource(@"C:\Samples\input.pdf"));
10options.AddOutput(new FileDataSource(@"C:\Samples\output_page_1.tiff"));
11
12// Process the conversion
13converter.Process(options);

Multi-Page TIFF Creation

The PDF to TIFF Converter plugin supports multi-page TIFF generation, allowing you to combine multiple PDF pages into a single TIFF file for efficient archiving or printing.

 1var converter = new TiffConverter();
 2var options = new PdfToTiffOptions
 3{
 4    MultiPage = true // Enable multi-page TIFF output
 5};
 6
 7// Add input PDF file
 8options.AddInput(new FileDataSource(@"C:\Samples\input.pdf"));
 9
10// Specify output file for multi-page TIFF
11options.AddOutput(new FileDataSource(@"C:\Samples\output.tiff"));
12
13// Process the conversion
14converter.Process(options);

Batch Processing for PDF to TIFF Conversion

The PDF to TIFF Converter plugin also supports batch processing, allowing you to convert multiple PDF pages or entire documents simultaneously into separate TIFF files.

 1var converter = new TiffConverter();
 2var options = new PdfToTiffOptions();
 3
 4// Add input PDF file
 5options.AddInput(new FileDataSource(@"C:\Samples\input.pdf"));
 6
 7// Set output paths for individual pages
 8options.AddOutput(new FileDataSource(@"C:\Samples\output_page_1.tiff"));
 9options.AddOutput(new FileDataSource(@"C:\Samples\output_page_2.tiff"));
10
11// Process the batch conversion
12converter.Process(options);

How to Handle Conversion Results

The Process method returns a ResultContainer object that provides details about the conversion results. You can print the paths of the converted TIFF files as shown below:

1ResultContainer resultContainer = converter.Process(options);
2
3// Print the output paths of the TIFF images
4foreach (FileResult result in resultContainer.ResultCollection)
5{
6    Console.WriteLine(result.Data.ToString());
7}
 English