ExportToTIFF

The ExportToTIFF method converts a PDF document to a Tiff document. This function is only available with the JPEG Converter product and requires a call to Document.SetLicenseKey before it can be used.

Syntax

ActiveX:

boolean ExportToTIFF( BSTR FileName, acTiffExportOptions TiffOption )

DLL:

int DocConvertToTIFF(EXTDOCHANDLE edhDocument, LPCWSTR FileName, DWORD Resolution, DWORD OutputOptions)

Parameters

FileName

[in] Full path of resulting JPeg file(s).

acTiffExportOptions

 

ActiveX Constants

DLL Constants

Value

Notes

acTiffExportOptionCCITTDefault

 

0x13107210

 

 

TIFFOPTION_DEFAULT

0x012C0000

300 DPI, no compression.

acTiffExportOptionCCITTLow

TIFFOPTION_LOW

0x0096000A

Low resolution 150 DPI, CCITT compression.

acTiffExportOptionCCITTMedium

TIFFOPTION_MEDIUM

0x012C000A

300 DPI, no compression.

acTiffExportOptionCCITTHigh

TIFFOPTION_HIGH

0x0258000A

High resolution 600 DPI, CCITT compression (could be very slow).

 

edhDocument

Handle Returned by DocOpen().

resolution

This is the resolution of the exported image in dots per inch. Possible values are 150, 300, 600.

OutputOptions

 

Value

Description

1 – 9

JPEG Compression

10

CCITT Compression

0

No Compression

 

Return Value

The return value is True if the document was converted, False otherwise.

 

C++ Sample

 

For  ActiveX:

  CDIntfEx.Document PDFdoc = new CDIntfEx.DocumentClass ();

    try

  {

      PDFdoc.SetLicenseKey (strLicenseTo, strActivationCode);

      PDFdoc.Open (@"C:\temp\sample.pdf");

      PDFdoc.ExportToTIFF ( @"C:\temp\sample.tif", CDIntfEx.acTiffExportOptions.acTiffExportOptionCCITTMedium);

  }

      catch (Exception ex)

      

{

 MessageBox.Show ( ex.Message , "Amyuni Sample", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation );    

     

 }