Skip to main content
.NET Framework 4.5.2+

PdfDocumentProcessor.CreateTiff(String, Int32) Method

Exports a PDF document to a multi-page TIFF image and saves the image to a file.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v22.2.dll

Declaration

public void CreateTiff(
    string fileName,
    int largestEdgeLength
)

Parameters

Name Type Description
fileName String

A String which specifies the file name (including the full path) for the created Tiff image.

largestEdgeLength Int32

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

Remarks

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

Note

Set the RenderingEngine property to Skia to enable this method on Azure Web Apps, Linux, or Mac OS. To use the Skia rendering engine, add a reference to the DevExpress.Pdf.SkiaRenderer package or the DevExpress.Pdf.SkiaRenderer.v22.2 library reference with the SkiaSharp package (v1.68 if you use .NET Framework 4.5 and v2.80 for .NET Standard).

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

View Example

using DevExpress.Pdf;

static void Main(string[] args)
{
  int largestEdgeLength = 1000;

  using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
  {
    // Load a document.
    processor.LoadDocument("..\\..\\Document.pdf");

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