略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruDoc::setPagesConfiguration

2024-11-11

HaruDoc::setPagesConfiguration

(PECL haru >= 0.0.1)

HaruDoc::setPagesConfigurationSet the number of pages per set of pages

说明

HaruDoc::setPagesConfiguration ( int $page_per_pages ) : bool

By default the document has one pages object as a root for all pages. All page objects are create as branches of this object. One pages object can contain only 8191, therefore the maximum number of pages per document is 8191. But you can change that fact by setting page_per_pages parameter, so that the root pages object contains 8191 more pages (not page) objects, which in turn contain 8191 pages each. So the maximum number of pages in the document becomes 8191*page_per_pages.

参数

page_per_pages

The numbers of pages that a pages object can contain.

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/harudoc.setpagesconfiguration.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3