SaveDIBAsPDFPage

 

SaveDIBAsPDFPage(hDIB as Long, szTiffDllName as String) as Boolean

Description

Save a DIB as a page in the PDF file.  The page is reformatted to fit the image.  The TIFF DLL is loaded dynamically when it is needed from the path specified in szTiffDllName.  The PDF must have already been created using the CreatePDF method.

Saving a page to an already existing PDF file (opened using LoadPDFIntoDIB) will append the new page to the end of the PDF file.

 

Parameters

Long

hDIB

Handle to the DIB to be saved  NOTE:  The color depth of the DIB must be a 1 bit

String

szTiffDllName

The string containing the path to the TIFF DLL

Return values

TRUE on success, FALSE if any error occured. Call GetLastPDFError() for the error code.