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::ImageCallBack

Show in webframe

#include "ltwrappr.h"

#include "LTCPDFComp.h"

virtual L_INT LPDFCompressor::ImageCallBack (nPage, pSegment)

L_INT nPage;

/* current page index */

LPSEGMENTINFO 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

 

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.