PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / compressAndClose Method
Collapse All Expand All
In This Topic

compressAndClose Method
In This Topic
Compresses the graphic content and closes the graphics surface.
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.
Syntax

    public void compressAndClose()

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.