FinishPDFInMemory

 

FinishPDFInMemory(ByRef pSize as Long) as LONGLONG

 

Description

 

Finish writing the PDF file that was opened using the CreatePDFInMemory function. Writes the ROOT object, the CATALOG object, creates the Cross Reference Table (XREF) and finally closes the PDF file itself. Must be used if the CreatePDFInMemory function was used to create the file. The pointer returned in the pPDFData parameter must be freed with the FreePDFInMemory function after use.

 

Parameters

 

ByRef Long

pSize

Returns the size of the returned PDF in bytes.

 

Return values

 

Pointer to the PDF in memory, or NULL if an error occurred. Call GetLastPDFError() for the error code.