HaruDoc::addPageLabel
(PECL haru:0.0.1)
HaruDoc::addPageLabel — Set the numbering style for the specified range of pages
Описание
bool HaruDoc::addPageLabel
( int $first_page
, int $style
, int $first_num
[, string $prefix
] )
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. Optional, empty by default.
Возвращаемые значения
Returns TRUE on success.
Errors/Exceptions
Throws HaruException on error.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Haru PDF
- Функция HaruDoc::addPage() - Add new page to the document
- Функция HaruDoc::addPageLabel() - Set the numbering style for the specified range of pages
- Функция HaruDoc::__construct() - Construct new HaruDoc instance
- Функция HaruDoc::createOutline() - Create a HaruOutline instance
- Функция HaruDoc::getCurrentEncoder() - Get HaruEncoder currently used in the document
- Функция HaruDoc::getCurrentPage() - Return current page of the document
- Функция HaruDoc::getEncoder() - Get HaruEncoder instance for the specified encoding
- Функция HaruDoc::getFont() - Get HaruFont instance
- Функция HaruDoc::getInfoAttr() - Get current value of the specified document attribute
- Функция HaruDoc::getPageLayout() - Get current page layout
- Функция HaruDoc::getPageMode() - Get current page mode
- Функция HaruDoc::getStreamSize() - Get the size of the temporary stream
- Функция HaruDoc::insertPage() - Insert new page just before the specified page
- Функция HaruDoc::loadJPEG() - Load a JPEG image
- Функция HaruDoc::loadPNG() - Load PNG image and return HaruImage instance
- Функция HaruDoc::loadRaw() - Load a RAW image
- Функция HaruDoc::loadTTC() - Load the font with the specified index from TTC file
- Функция HaruDoc::loadTTF() - Load TTF font file
- Функция HaruDoc::loadType1() - Load Type1 font
- Функция HaruDoc::output() - Write the document data to the output buffer
- Функция HaruDoc::readFromStream() - Read data from the temporary stream
- Функция HaruDoc::resetError() - Reset error state of the document handle
- Функция HaruDoc::resetStream() - Rewind the temporary stream
- Функция HaruDoc::save() - Save the document into the specified file
- Функция HaruDoc::saveToStream() - Save the document into a temporary stream
- Функция HaruDoc::setCompressionMode() - Set compression mode for the document
- Функция HaruDoc::setCurrentEncoder() - Set the current encoder for the document
- Функция HaruDoc::setEncryptionMode() - Set encryption mode for the document
- Функция HaruDoc::setInfoAttr() - Set the info attribute of the document
- Функция HaruDoc::setInfoDateAttr() - Set the datetime info attributes of the document
- Функция HaruDoc::setOpenAction() - Define which page is shown when the document is opened
- Функция HaruDoc::setPageLayout() - Set how pages should be displayed
- Функция HaruDoc::setPageMode() - Set how the document should be displayed
- Функция HaruDoc::setPagesConfiguration() - Set the number of pages per set of pages
- Функция HaruDoc::setPassword() - Set owner and user passwords for the document
- Функция HaruDoc::setPermission() - Set permissions for the document
- Функция HaruDoc::useCNSEncodings() - Enable Chinese simplified encodings
- Функция HaruDoc::useCNSFonts() - Enable builtin Chinese simplified fonts
- Функция HaruDoc::useCNTEncodings() - Enable Chinese traditional encodings
- Функция HaruDoc::useCNTFonts() - Enable builtin Chinese traditional fonts
- Функция HaruDoc::useJPEncodings() - Enable Japanese encodings
- Функция HaruDoc::useJPFonts() - Enable builtin Japanese fonts
- Функция HaruDoc::useKREncodings() - Enable Korean encodings
- Функция HaruDoc::useKRFonts() - Enable builtin Korean fonts
Коментарии
404 Not Found