Forum und email

cpdf_restore

(PHP 4, PHP 5 <= 5.0.5)

cpdf_restore — Restores formerly saved environment

설명

bool cpdf_restore ( int $pdf_document )

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.

매개변수

pdf_document

cpdf_open()이 반환한 문서 핸들.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

예제

Example#1 Save/Restore

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

참고