Tiff Plugin

Overview

The Aspose.Pdf.LowCode.Tiff plugin renders PDF pages as TIFF images. Configure the operation with TiffOptions, add input and output data sources, and call Process.

Convert PDF to multi-page TIFF

// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void ConvertPdfToTiffWithPlugin()
{
    // The path to the documents directory
    var dataDir = RunExamples.GetDataDir_AsposePdf_WorkingDocuments();

    // Create PDF Tiff plugin
    var plugin = new Aspose.Pdf.LowCode.Tiff();

    // Configure TIFF conversion options
    var options = new Aspose.Pdf.LowCode.TiffOptions();
    options.OutputResolution = 300;
    options.SaveAsMultiPageTiff = true;
    options.Compression = Aspose.Pdf.Devices.CompressionType.LZW;
    options.AddInput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "ConvertAllPagesToBmp.pdf"));
    options.AddOutput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "ConvertPdfToTiff_out.tiff"));

    // Convert the file
    var result = plugin.Process(options);

    // Get the path of the saved TIFF image
    var outputPath = result.ResultCollection[0].ToFile();
}

Options

Use SaveAsMultiPageTiff to save all selected pages into one TIFF file. TiffOptions also exposes TIFF settings such as Compression, Depth, Brightness, CoordinateType, SkipBlankPages, and Shape.