Initializes the PDF compressor and creates an empty PDF document file in the memory.
#include "ltwrappr.h"
#include "LTCPDFComp.h"
L_INT LPDFCompressor::Init()
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
LPDFCompressor::Init must be called before calling any other PDF compressor functions.
When the PDF Compressor and the PDF document are no longer needed, they should be freed by calling LPDFCompressor::Free. For every call to LPDFCompressor::Init there must be a call to LPDFCompressor::Free.
For an example, refer to LPDFCompressor::InsertNormal.