略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruDoc::addPageLabel

2024-12-21

HaruDoc::addPageLabel

(PECL haru >= 0.0.1)

HaruDoc::addPageLabelSet the numbering style for the specified range of pages

说明

HaruDoc::addPageLabel ( int $first_page , int $style , int $first_num [, string $prefix = "" ] ) : bool

Set the numbering style for the specified range of pages.

参数

first_page

The first page included into the labeling range.

style

The numbering style. The following values are allowed:

  • HaruPage::NUM_STYLE_DECIMAL - page label is displayed using decimal numerals.
  • HaruPage::NUM_STYLE_UPPER_ROMAN - page label is displayed using uppercase Roman numerals.
  • HaruPage::NUM_STYLE_LOWER_ROMAN - page label is displayed using lowercase Roman numerals.
  • HaruPage::NUM_STYLE_UPPER_LETTER - page label is displayed using uppercase letters (from A to Z).
  • HaruPage::NUM_STYLE_LOWER_LETTERS - page label is displayed using lowercase letters (from a to z).
first_num

The first page number in this range.

prefix

The prefix for the page label.

返回值

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.addpagelabel.php

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