#include "ltwrappr.h"

#include "LTCPDFComp.h"

virtual L_INT LPDFCompressor::ImageCallBack (nPage, pSegment)

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


L_INT nPage

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


Pointer to the SEGMENTINFO structure that contains the segment information.


Value Meaning
SUCCESS Add the current segment and continue.
FAILURE Do not add this segment. Continue to the next segment.


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

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

LEADTOOLS MRC C++ Class Library Help