BOOL CCreatePDF::SaveDIBAsPDFPage( HANDLE hDIB,
LPCSTR 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 |
Return values
TRUE on success, FALSE if any error occured. Call PDF_GetLastError() for the error code.