PECL ps >= 1.1.0
ps_save - Save current context
ps_save( resource$psdoc ): bool
Saves the current graphics context, containing colors, translation and rotation settings and some more. A saved context can be restored with ps_restore.
Resource identifier of the postscript file as returned by ps_new.
Returns true on success or false on failure.