| property OnCompress: TCompressEvent; |
| This property that can be assigned to an event. The event must be defined if you want to compress the page stream in the PDF file. You will also need to set the Use Compression property to true if you want the page stream compressed. |
| // Typically, the code defined inside the OnCompress event will be something similar to this: |
| with TCompressionStream.Create(clMax, OutStream) do try |
| CopyFrom(InStream, InStream.Size); |
|