LPDFCompressor::ImageCallBack

#include "ltwrappr.h"

#include "LTCPDFComp.h"

L_INT LPDFCompressor::ImageCallBack (nPage, pSegment)

L_INT nPage;

/* current page index */

pSEGMENTINFO pSegment;

/* pointer to the SEGMENTINFO structure */

This callback function is called every time a segment is added to the PDF document.

Parameter

Description

nPage

Index of the page on which the segment is being written. This is a zero-based index.

pSegment

Pointer to the SEGMENTINFO structure that contains the segment information.

Returns

SUCCESS

Add the current segment and continue.

FAILURE

Do not add this segment. Continue to the next segment.

Comments

This callback is called each time an MRC segment is added to the PDF file in memory, by calling LPDFCompressor::InsertMRC, if LBase::EnableCallBack was set to TRUE.

The user should return SUCCESS to add the current segment and continue with the process, or FAILURE, to not add this segment and proceed with the next one.

Required DLLs and Libraries

LCMRC
LCPDF
LCENC
LCZIB
LTSGM

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::Init, LPDFCompressor::InsertMRC, Class Members

Topics:

Creating a Compressed PDF File

 

Class Library Function Groups

Example

For an example, refer to LPDFCompressor::InsertMRC.