PHP 手册
上一页 |  | 下一页

# cpdf_restore

(PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)

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`

  The document handle, returned by cpdf_open().

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 范例

例 1. Save/Restore

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

## 参见

cpdf_save()

上一页 | 起始页 | 下一页
cpdf_rect | 上一级 | cpdf_rlineto