L_PdfCompSetCompression

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

L_LCMRC_API L_INT L_PdfCompSetCompression (hDocument, pCompression);

Sets the compression type to be used with each image segment inserted in the PDF file.

Parameters

LCPDF_HANDLE hDocument

Handle to an existing PDF document. This handle is obtained by calling the L_PdfCompInit function.

LPPDFCOMPRESSION pCompression

Pointer to the PDFCOMPRESSION structure that contains the compression options to set.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function must be called before inserting a compressed image into the PDF file by calling the following functions:

L_PDFCompInsertMRC

L_PDFCompInsertNormal

L_PDFCompInsertSegments

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

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Mixed Raster Content (MRC) C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.