Overview

TIFF To PDF ActiveX DLL

Are you a developer? Do you want to add the "PDF To TIFF", "TIFF To PDF", "PDF To Images" features to your application?

Now, you can try TIFF To PDF ActiveX DLL, with a few function calls, it helps you convert TIFF files into PDF in your Win programs or Web applications.

AzSDK TIFF To PDF ActiveX DLL can be used to convert one or more TIFF files into PDF files, convert PDF files to TIFF files, support single or multiple pages TIFF, it also can be used to convert JPG, JPEG, PNG, GIF, BMP, WMF, EMF or EPS into TIFF or TIF format, also support converting PDF into BMP, JPEG, WMF, EMF, EPS, PNG, GIF, and TIFF.

It is a standalone component and does not depend on Adobe Acrobat, or even Acrobat Reader.

Key Features

  • Convert one or more TIFF files into PDF files.
  • Support single or multiple pages TIFF.
  • Support converting JPG, JPEG, PNG, GIF, BMP, WMF, EMF, or EPS into TIFF or TIF format.
  • Support converting PDF into BMP, JPEG, WMF, EMF, EPS, PNG, GIF, and TIFF.
  • Standalone, doesn't depend on Adobe Acrobat or Reader.
  • Support many development languages, such as VB Script, Javascript, Perl, Php, Python, ASP, ASP.Net, VB.Net, C#, VB6, Cold Fusion, Delphi, VC++, Java, etc.
  • More demos in other languages on request.
  • Support Windows XP/VISTA/7/8/10/11 and Windows Server 2003/2008/2012/2016(Include R2).
  • Support Win 32-Bit and Win 64-Bit.
  • Royalty-free, Use TIFF To PDF ActiveX DLL in your applications without needing to pay any royalty fees for distribution.
  • No limits on the number of applications.

ITIFF2PDFLib Interface Reference

LONG TiffToPDF(String inputTiffs, String outputPdf)

Description:
Convert one or more TIFF files into PDF file.
Parameters:
inputTiffs The TIFF Files to be converted. The files are separated by character "|". For each file, a range can be specified too. For example, "1.tiff|2.tiff" can be used to convert the one pdf file.
outputPdf The output pdf file.
Return Value:
0: Converting was failed.
1: Converting was successful.
-1: Source image file is empty.
-2: Source image file does not exist.
-3: Source image could not be opened.
-4: Destination directory does not exist.

LONG ImageToTiff(String inputImage, Long nDPI, Long nImageOptions, String outputTiff)

Description:
Convert one or more Image files into a multi-pages TIFF file.
Parameters:
inputImage: The Image Files to be converted. The files are separated by character "|". For each file, a range can be specified too. For example, "1.bmp|2.bmp"can be used to convert the one TIFF file.
nDPI: The DPI to convert the pages at, usually set to 72.
nImageOptions: The image options to use: 0= 24-bit RGB TIFF, 1= 1-bit G4 TIFF
outputTiff : The output TIFF file.
Return Value:
0: Converting was failed.
1: Converting was successful.
-1: Source image file is empty.
-2: Source image file does not exist.
-3: Source image could not be opened.
-4: Destination directory does not exist.

LONG PdfToImage(String inputPDF, String Password, Long nDPI, String PageRanges, Long nImageType, String outputFile)

Description:
Convert the specified pages from PDF file into Image files.
Parameters:
inputPDF: The PDF File to be converted.
Password: Password for opening the pdf. If no password, just pass a empty string "".
PageRanges: Ranges is defined by page ranges. Page Ranges are separate by character ",". For example "1,5,15-20,25-35". Invalid characters and duplicate page numbers in the string will be ignored.
nDPI: The DPI to convert the pages at, usually set to 72.
nImageType: The image options to use:
0 = BMP
1 = JPEG
2 = WMF
3 = EMF
4 = EPS
5 = PNG
6 = GIF
7 = TIFF
outputFile : The output Image file name. The path and filename to use for the file. Each page will be stored in a separate image file. If this parameter contains "%d" this will be replaced by the page number, otherwise the page number will be appended to the end of the filename before the extension. For example, if outputFile is "output.jpg" and page 10 is converted the image will be stored in a file called "output10.jpg". If outputFile is "page%d_output.bmp" and page 4 is converted the image will be stored in a file called "page4_output.bmp".
Return Value:
0: Converting was failed.
1: Converting was successful.
-1: Source pdf file does not exist.
-2: Source pdf file could not be opened.
-3: Destination directory does not exist.
-4: Page Ranges have error.

LONG PdfToSingleTiff(String inputPDF, String Password, Long nDPI, String PageRanges, Long nImageOptions, String outputFile)

Description:
Convert the specified pages from PDF file to a multi-pages TIFF file.
Parameters:
inputPDF: The PDF File to be converted.
Password: Password for opening the pdf. If no password, just pass a empty string "".
PageRanges: Ranges is defined by page ranges. Page Ranges are separate by character ",". For example "1,5,15-20,25-35". Invalid characters and duplicate page numbers in the string will be ignored.
nDPI: The DPI to convert the pages at, usually set to 72.
nImageOptions: The image options to use: 0= 24-bit RGB TIFF, 1= 1-bit G4 TIFF
outputFile : The output TIFF file name.
Return Value:
0: Converting was failed.
1: Converting was successful.
-1: Source pdf file does not exist.
-2: Source pdf file could not be opened.
-3: Destination directory does not exist.
-4: Page Ranges have error.

LONG GetPageCount(String pdfFile, String password)

Description:
Get the page count of a pdf file
Parameters:
pdfFile: the pdf file
password: password for opening the pdf. If no password, just pass a empty string "".
Return Value:
-1: The pdf file does not exist.
-2: The pdf file could not be analysed.
>0 (Greater than zero): Number of pages of pdf document.

LONG GetImagePageCount(String imageFile)

Description:
Get the number of pages in the specified image file. Most images consist of 1 page, but TIFF images may contain multiple pages.
Parameters:
imageFile: The image file
Return Value:
-1: The image file does not exist.
0: The image file is invalid.
>0 (Greater than zero): Number of pages of image document.

VOID SetLicenseKey(String LicenseKey)

Description:
Set valid license key to unlock ActiveX DLL.
Parameters:
LicenseKey: License Key of registered.
NOTE: This method must be placed in front of TiffToPDF(), ImageToTiff(), PDFToImage() and PDFToSingleTiff().

Screenshot of DEMO Program



System Requirements

Desktop

  • Windows XP (32-bit, 64-bit)
  • Windows Vista (32-bit, 64-bit)
  • Windows 7 (32-bit, 64-bit)
  • Windows 8/8.1 (32-bit, 64-bit)
  • Windows 10 (32-bit, 64-bit)

Server

  • Windows Server 2003 (32-bit, 64-bit)
  • Windows Server 2008 (32-bit, 64-bit)
  • Windows Server 2012 (32-bit, 64-bit)
  • Windows Server 2016 (32-bit, 64-bit)