SaveDIBAsPDFPage

 

BOOL CCreatePDF::SaveDIBAsPDFPage( HANDLE hDIB,
LPCTSTR szTiffDllName)

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

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

 

Parameters

HANDLE

hDIB

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

LPCTSTR

szTiffDllName

The string containing the path to the TIFF DLL

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

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