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).
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
public System.Boolean ExportToTiff (System.String filename, System.UInt32 resolution, System.UInt32 tiffFormat, System.Int32 fromPage, System.Int32 toPage)
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.
Returns True on success, False otherwise.
Member of Amyuni.PDFCreator.IacDocument.
fromPage and toPage can be omitted, in this case the whole document is exported.
//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);