Restores formerly saved environment (PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)
bool cpdf_restore ( int pdf_document )

The cpdf_restore() function restores the environment saved with cpdf_save(). It works like the postscript command grestore. Very useful if you want to translate or rotate an object without effecting other objects. 如果成功则返回 TRUE,失败则返回 FALSE

例 368. Save/Restore

// do all kinds of rotations, transformations, ...

See also cpdf_save().