L_PdfCompFree

#include "l_bitmap.h"
#include "lpdfComp.h"

L_LCMRC_API L_VOID L_PdfCompFree (hDocument)

LCPDF_HANDLE hDocument;

/* handle to an existing PDF document */

Frees the PDF document handle and all associated memory.

Parameter

Description

hDocument

Pointer to a handle to an existing PDF document. This handle was created by calling the L_PdfCompInit function.

Returns

None

Comments

For each call to L_PdfCompInit there must be a call to L_PdfCompFree. This function should be the last function to be called in the PDF compressor functionality. It will free memory associated with the PDF document handle.

If this function is called before calling L_PdfCompWrite, then the PDF document file in the memory will be destroyed and the user will lose the data in that document.

Required DLLs and Libraries

LCMRC
LCPDF
LCENC
LCZIB
LTSGM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_PdfCompInit

Topics:

Creating a Compressed PDF File

 

PDF Compressor Functions: Creating a File

Example

For an example, refer to L_PdfCompInsertNormal.