HaruDoc::getStreamSize

(PECL haru >= 0.0.1) Get the size of the temporary stream int HaruDoc::getStreamSize ( void ) Get the size of the temporary stream. Returns: Returns the size of the data in the temporary stream of the document. The size is zero if the document was not saved to the temporary stream. Exception: Throws a HaruException on error.

HaruDoc::getPageMode

(PECL haru >= 0.0.1) Get current page mode int HaruDoc::getPageMode ( void ) Get the current page mode. See HaruDoc::setPageMode() for the list of possible values. Returns: Returns the page mode currently set in the document. See HaruDoc::setPageMode() for the list of possible values. Exception: Throws a HaruException on error.

HaruDoc::getPageLayout

(PECL haru >= 0.0.1) Get current page layout int HaruDoc::getPageLayout ( void ) Get the current page layout. See HaruDoc::setPageLayout() for the list of possible values. Returns: Returns the page layout currently set in the document or FALSE if page layout was not set. See HaruDoc::setPageLayout() for the list of possible values. Exception: Throws a HaruExcept

HaruDoc::getInfoAttr

(PECL haru >= 0.0.1) Get current value of the specified document attribute string HaruDoc::getInfoAttr ( int $type ) Get the current value of the specified document attribute. Parameters: type The type of the attribute. The following values are available: HaruDoc::INFO_AUTHOR HaruDoc::INFO_CREATOR HaruDoc::INFO_TITLE HaruDoc::INFO_SUBJECT HaruDoc::INFO_KEYWOR

HaruDoc::getFont

(PECL haru >= 0.0.1) Get HaruFont instance object HaruDoc::getFont ( string $fontname [, string $encoding ] ) Get a HaruFont instance. Parameters: fontname The name of the font. See Builtin Fonts for the list of builtin fonts. You can also use the name of a font loaded via HaruDoc::loadTTF(), HaruDoc::loadTTC() and HaruDoc::loadType1(). encoding

HaruDoc::getEncoder

(PECL haru >= 0.0.1) Get HaruEncoder instance for the specified encoding object HaruDoc::getEncoder ( string $encoding ) Get the HaruEncoder instance for the specified encoding. Parameters: encoding The encoding name. See Builtin Encodings for the list of allowed values. Returns: Returns a HaruEncoder instance for the specified encoding.

HaruDoc::getCurrentPage

(PECL haru >= 0.0.1) Return current page of the document object HaruDoc::getCurrentPage ( void ) Get current page of the document. Returns: Returns HaruPage instance on success or FALSE if there is no current page at the moment. Exception: Throws a HaruException on error.

HaruDoc::getCurrentEncoder

(PECL haru >= 0.0.1) Get HaruEncoder currently used in the document object HaruDoc::getCurrentEncoder ( void ) Get the HaruEncoder currently used in the document. Returns: Returns HaruEncoder currently used in the document or FALSE if encoder is not set. Exception: Throws a HaruException on error. See also:

HaruDoc::createOutline

(PECL haru >= 0.0.1) Create a HaruOutline instance object HaruDoc::createOutline ( string $title [, object $parent_outline [, object $encoder ]] ) Create a HaruOutline instance. Parameters: title The caption of new outline object. parent_outline A valid HaruOutline instance or NULL. encoder A valid

HaruDoc::__construct

(PECL haru >= 0.0.1) Construct new HaruDoc instance HaruDoc::__construct ( void ) Constructs new HaruDoc instance. Returns: No value is returned. Exception: Throws a HaruException on error.