CreatePDFInMemory

 

CreatePDFInMemory(pAppendTo as LONGLONG, lSize as Long) as Boolean

 

Description

 

Creates the image PDF file in memory, optionally appending to an existing image PDF. After writing the pages using the SaveDIBAsColorPDFPage function, the PDF should be closed using the FinishPDFInMemory function which returns the pointer to the created PDF file.

 

Parameters

 

LONGLONG

pAppendTo

Optional – Pointer to an existing image PDF in memory to append to. NULL if a new PDF should be created.

Long

lSize

Optional – The size of the PDF pointed to by pAppendTo in bytes.

 

Return values

 

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