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.
Property | Description |
---|---|
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. |
For more information, refer to Creating a Compressed PDF File.
Refer to PdfCompressorEngine example