Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS MRC C++ Class Library Help

LPDFCompressor::SetCompression

Show in webframe

#include "ltwrappr.h"

L_INT LPDFCompressor::SetCompression(pCompression)

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

pCompression

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

Returns

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

LCMRC
LCPDF
LCENC
LCZIB

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:

LPDFCompressor::InsertMRC, LPDFCompressor::InsertNormal, LPDFCompressor::InsertSegments

Topics:

Creating a Compressed PDF File

 

C++ Class Library Function Groups

Example

For an example, refer to LPDFCompressor::InsertMRC

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.