Forum und email

cpdf_restore

(PHP 4, PHP 5 <= 5.0.5)

cpdf_restore — 以前に保存した環境を回復させる

説明

bool cpdf_restore ( int $pdf_document )

cpdf_save()で保存した環境を回復します。 この関数は、postscript のコマンド grestore と同様に動作します。 他のオブジェクトに影響を与えずにあるオブジェクトを変換または 回転したい場合に非常に便利です。

パラメータ

pdf_document

cpdf_open() が返す、ドキュメントのハンドル。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

Example#1 保存/回復

<?php
cpdf_save
($pdf);
// do all kinds of rotations, transformations, ...
cpdf_restore($pdf)
?>

参考