IacDocument.ExportToTiFF Method

The ExportToTiff method is used to export a PDF document to Tiff format. It is recommended to use this method together with OptimizeDocument method (See also OptimizeDocument method).

Syntax

Visual Basic .NET:

public Function ExportToTiff(ByVal filename As String, ByVal resolution As System.UInt32, ByVal tiffFormat As System.UInt32, ByVal fromPage As Integer, ByVal toPage As Integer) As Boolean

C#:

public System.Boolean ExportToTiff (System.String filename, System.UInt32 resolution, System.UInt32 tiffFormat, System.Int32 fromPage, System.Int32 toPage)

Parameters

FileName

Name of the file with .tiff extension to export to.

TiffFormat

 

Option

Value

Description

acTiffExportOptionDefault

13107210

Default

acTiffExportOptionCCITTLow

9830410

Low Quality

acTiffExportOptionCCITTMedium

19660810

Medium Quality

acTiffExportOptionCCITTHigh

39321610

High Quality

 

Resolution

75, 150, 300, 600.

fromPage

Starting page for export.

toPage

Ending page for export.

Return Value

Returns True on success, False otherwise.

Remarks

Example

//Initialize library and set our license key
acPDFCreatorLib.Initialize();
acPDFCreatorLib.SetLicenseKey("Evaluation", "07EFC71...28EEF79");
 
//Tiff output with no Compression
System.UInt32 tiffFormat = 26;
 
// 150 DPI
System.UInt32 resolution = 1;
 
System.IO.FileStream testfile = new System.IO.FileStream("TestFile.pdf", FileMode.Open);
 
IacDocument document = new IacDocument(null);
 
//Open the pdf document
document.Open(testfile, "");
document.ExportToTiff("Test.tiff", resolution, tiffFormat);