.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocumentProcessor.CreateTiff(Stream, Int32) Method

Exports a PDF document to a TIFF image using a stream, and the image’s largest edge length.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v21.1.dll


public void CreateTiff(
    Stream stream,
    int largestEdgeLength


Name Type Description
stream Stream

A Stream object that is a stream to which a TIFF image should be written.

largestEdgeLength Int32

An integer value, specifying the length of the image’s largest dimension, in pixels.


The largestEdgeLength parameter determines the output image height for pages in the portrait orientation and width - for landscape pages.


Set the PdfDocumentProcessor.RenderingEngine property to Skia to enable this method on Azure Web Apps.

The following example shows how to convert pages to a multi-page Tiff image.

using DevExpress.Pdf;

namespace ExportToTiff
    class Program
        static void Main(string[] args)
            int largestEdgeLength = 1000;
            int[] pageNumbers = new int[] { 1, 3, 5 };

            // Create a PDF Document Processor.
            using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
                // Load a document. 

                // Export pages to a multi-page tiff image.
                processor.CreateTiff("..\\..\\Image.tiff", largestEdgeLength, pageNumbers);


The CreateTiff method uses GDI/GDI+ rendering and works only on Windows OS. The PlatformNotSupportedException is thrown on other operating systems.

See Also