PHP 手册
上一页 |  | 下一页

# cpdf_global_set_document_limits

(PHP 4, PHP 5 <= 5.0.4)

cpdf_global_set_document_limits -- Sets document limits for any pdf document

## 说明

bool cpdf_global_set_document_limits ( int maxpages, int maxfonts, int maximages, int maxannotations, int maxobjects )

Sets several document limits. This function has to be called before cpdf_open() to take effect. It sets the limits for any document open afterwards.

## 参数

`maxPages`

  The maximum number of pages

`maxFonts`

  The maximum number of fonts

`maxImages`

  The maximum number of images

`maxAnnots`

  The maximum number of annotations

`maxObjects`

  The maximum number of objects

## 返回值

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

## 参见

cpdf_open()

上一页 | 起始页 | 下一页
cpdf_finalize | 上一级 | cpdf_import_jpeg