HaruDoc::useJPFonts

(PECL haru >= 0.0.1) Enable builtin Japanese fonts bool HaruDoc::useJPFonts ( void ) Enables builtin Japanese fonts. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useJPEncodings() -

HaruDoc::useJPEncodings

(PECL haru >= 0.0.1) Enable Japanese encodings bool HaruDoc::useJPEncodings ( void ) Enables Japanese encodings. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useJPFonts() -

HaruDoc::useCNTFonts

(PECL haru >= 0.0.1) Enable builtin Chinese traditional fonts bool HaruDoc::useCNTFonts ( void ) Enables builtin Chinese traditional fonts. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useCNTEncodings() -

HaruDoc::useCNTEncodings

(PECL haru >= 0.0.1) Enable Chinese traditional encodings bool HaruDoc::useCNTEncodings ( void ) Enables Chinese traditional encodings. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useCNTFonts() -

HaruDoc::useCNSFonts

(PECL haru >= 0.0.1) Enable builtin Chinese simplified fonts bool HaruDoc::useCNSFonts ( void ) Enables builtin Chinese simplified fonts. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useCNSEncodings() -

HaruDoc::useCNSEncodings

(PECL haru >= 0.0.1) Enable Chinese simplified encodings bool HaruDoc::useCNSEncodings ( void ) Enables Chinese simplified encodings. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::useCNSFonts() -

HaruDoc::setPermission

(PECL haru >= 0.0.1) Set permissions for the document bool HaruDoc::setPermission ( int $permission ) Defines permissions for the document. Parameters: permission The values is a combination of these flags: HaruDoc::ENABLE_READ - user can read the document. HaruDoc::ENABLE_PRINT - user can print the document. HaruDoc::ENABLE_EDIT_ALL - user can edit the contents

HaruDoc::setPassword

(PECL haru >= 0.0.1) Set owner and user passwords for the document bool HaruDoc::setPassword ( string $owner_password, string $user_password ) Defines owner and user passwords for the document. Setting the passwords makes the document contents encrypted. Parameters: owner_password The password of the owner, which can change permissions of the document. Empty password i

HaruDoc::setPagesConfiguration

(PECL haru >= 0.0.1) Set the number of pages per set of pages bool HaruDoc::setPagesConfiguration ( int $page_per_pages ) 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

HaruDoc::setPageMode

(PECL haru >= 0.0.1) Set how the document should be displayed bool HaruDoc::setPageMode ( int $mode ) Defines how the document should be displayed. Parameters: mode The following values are accepted: HaruDoc::PAGE_MODE_USE_NONE - display the document with neither outline nor thumbnail. HaruDoc::PAGE_MODE_USE_OUTLINE - display the document with outline pane. HaruD