LPDFCompressor::SetCompression

Summary

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

Syntax

#include "ltwrappr.h"

L_INT LPDFCompressor::SetCompression(pCompression)

Parameters

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:

LPDFCompressor::InsertMRC

LPDFCompressor::InsertNormal

LPDFCompressor::InsertSegments

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

See Also

Functions

Topics

Example

For an example, refer to LPDFCompressor::InsertMRC.

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

LEADTOOLS MRC C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.