Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#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.

Warning

The CreateTiff method is not available in .NET MAUI applications. An exception is thrown on an attempt to call this method.

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