PDFCompEvent event (ILEADPDFCompressor)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

Void PDFCompEvent (long nPage)

Overview

Refer to Creating a Compressed PDF File

Remarks

(Advanced PDF Plug in only) This event is fired every time a segment is added to the PDF Compressor object, if the bEnablePDcompEvent parameter of the PDFCompInit method is set to TRUE.

This event is fired by both the PDFCompInsertMRC method and the PDFCompInsertNormal method.

The user must set the EnableAddSegment property within this event to approve adding or cancel adding this segment to the PDF file.

Each time this event is fired, the MRCSegmentInfo property is updated.

The MRCSegmentInfo property is a pointer to an ILTSegmentInfo object, which updates the following properties:

SegmentBottom

SegmentColors

SegmentColorsCount

SegmentLeft

SegmentRight

SegmentTop

SegmentType

See Also

Elements:

PDFCompInsertMRC method, EnableAddSegment property, MRCSegmentInfo property, SegmentLeft property, SegmentTop property, SegmentRight property, SegmentBottom property, SegmentType property, SegmentColors property, SegmentColorsCount property

Topics:

PDF Compressor Functions: Creating a File