#include "l_bitmap.h"
#include "lpdfComp.h"
L_LCMRC_API L_INT L_PdfCompSetCompression (hDocument, pCompression);
LCPDF_HANDLE hDocument; |
handle to an existing PDF document |
LPPDFCOMPRESSION pCompression; |
pointer to the PDFCOMPRESSION structure |
Sets the compression type to be used with each image segment inserted in the PDF file.
Parameter |
Description |
hDocument |
Handle to an existing PDF document. This handle is obtained by calling the L_PdfCompInit function. |
pCompression |
Pointer to the PDFCOMPRESSION structure that contains the compression options to set. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
This function must be called before inserting a compressed image into the PDF file by calling the following functions:
If the user does not call this function before using these methods, then the insertion process will use the default compression types.
Required DLLs and Libraries
LCMRC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Functions: |
L_PdfCompInsertMRC, L_PDFCompInsertNormal, L_PDFCompInsertSegments |
Topics: |
|
|
For an example, refer to L_PdfCompInsertMRC.