PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFPage Class / saveCanvas Method
Collapse All Expand All
In This Topic

saveCanvas Method
In This Topic
Saves the page canvas.
The page graphics can be composed internally of multiple fragments. If you are working with large vector graphics, such as maps, then you can split the page graphics in fragments and save each fragmment as soon as it is done in order to reduce memory consumption. A graphics fragment is automatically created when method is called.
The page must be included in a document and the save procedure must be already initiated by a call.
Syntax

    public void saveCanvas()

Exceptions

Exception | Description
--- | ---
java.lang.IllegalStateException | When the page does not belong to a document or the save operation has not been initiated on the document.

See Also

#### Reference

PDFPage Class
PDFPage Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.