SegmentImage Event

Summary

Optional delegate method for additional processing.

Syntax
C#
VB
C++
public event EventHandler<PdfCompressorSegmentImageEventArgs> SegmentImage 
Public Event SegmentImage As EventHandler(Of PdfCompressorSegmentImageEventArgs) 
public: 
event EventHandler<PdfCompressorSegmentImageEventArgs^>^ SegmentImage 

Event Data

The event handler receives an argument of type PdfCompressorSegmentImageEventArgs containing data related to this event. The following PdfCompressorSegmentImageEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Gets or sets a value that indicates whether a segment should be added to the document.
Page Gets the index of the page on which the segment is being written.
Segment Gets information about the segment.

Remarks

For more information, refer to Creating a Compressed PDF File.

Example

Refer to PdfCompressorEngine example

Requirements

Target Platforms

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

Leadtools.PdfCompressor Assembly