LPDFCompressor::ImageCallBack

Summary

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

Syntax

#include "ltwrappr.h"
#include "LTCPDFComp.h"

virtual L_INT LPDFCompressor::ImageCallBack (nPage, pSegment)

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

See Also

Functions

Topics

Example

For an example, refer to LPDFCompressor::InsertMRC.

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

LEADTOOLS MRC C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.