Skip to content

PdfPageGraphics.CompressAndClose Method

CompressAndClose()

Compresses the graphic content and closes the graphics surface.

C#
public override void CompressAndClose()

Remarks

Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the Pdf file. After calling this method no more drawing is allowed on the graphics.