LPDFCompressor::ImageCallBack

#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.

Parameters

L_INT nPage

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

LPSEGMENTINFO pSegment

Pointer to the SEGMENTINFO structure that contains the segment information.

Returns

Value Meaning
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

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

LEADTOOLS MRC C++ Class Library Help