HaruDoc::setPageLayout

(PECL haru >= 0.0.1) Set how pages should be displayed bool HaruDoc::setPageLayout ( int $layout ) Defines how pages should be displayed. Parameters: layout The following values are accepted: HaruDoc::PAGE_LAYOUT_SINGLE - only one page is displayed. HaruDoc::PAGE_LAYOUT_ONE_COLUMN - display the pages in one column. HaruDoc::PAGE_LAYOUT_TWO_COLUMN_LEFT - display p

HaruDoc::setOpenAction

(PECL haru >= 0.0.1) Define which page is shown when the document is opened bool HaruDoc::setOpenAction ( object $destination ) Defines which page should be shown when the document is opened. Parameters: destination A valid HaruDestination instance. Returns: Returns TRUE on success. Exception: Throws a HaruExce

HaruDoc::setInfoDateAttr

(PECL haru >= 0.0.1) Set the datetime info attributes of the document bool HaruDoc::setInfoDateAttr ( int $type, int $year, int $month, int $day, int $hour, int $min, int $sec, string $ind, int $off_hour, int $off_min ) Sets the datetime info attributes of the document. Parameters: type The type of the attribute. Can be one of the following: HaruDoc::INFO_CREATION_DA

HaruDoc::setInfoAttr

(PECL haru >= 0.0.1) Set the info attribute of the document bool HaruDoc::setInfoAttr ( int $type, string $info ) Defines an info attribute. Uses the current encoding of the document. Parameters: type The type of the attribute. Can be one of the following: HaruDoc::INFO_AUTHOR HaruDoc::INFO_CREATOR HaruDoc::INFO_TITLE HaruDoc::INFO_SUBJECT HaruDoc::INFO_KEYWO

HaruDoc::setEncryptionMode

(PECL haru >= 0.0.1) Set encryption mode for the document bool HaruDoc::setEncryptionMode ( int $mode [, int $key_len = 5 ] ) Defines encryption mode for the document. The encryption mode cannot be set before setting the password. Parameters: mode The encryption mode to use. Can be one of the following: HaruDoc::ENCRYPT_R2 - use "revision2" algorithm. HaruDoc::ENC

HaruDoc::setCurrentEncoder

(PECL haru >= 0.0.1) Set the current encoder for the document bool HaruDoc::setCurrentEncoder ( string $encoding ) Defines the encoder currently used in the document. Parameters: encoding The name of the encoding to use. See Builtin Encodings for the list of allowed values. Returns: Returns TRUE on success. Exception:

HaruDoc::setCompressionMode

(PECL haru >= 0.0.1) Set compression mode for the document bool HaruDoc::setCompressionMode ( int $mode ) Defines compression mode for the document. In case when libharu was compiled without Zlib support this function will always throw HaruException. Parameters: mode The compression mode to use. The value is a combination of the following flags: HaruDoc::COMP_NONE -

HaruDoc::saveToStream

(PECL haru >= 0.0.1) Save the document into a temporary stream bool HaruDoc::saveToStream ( void ) Saves the document data into a temporary stream. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::resetStream() - HaruDo

HaruDoc::save

(PECL haru >= 0.0.1) Save the document into the specified file bool HaruDoc::save ( string $file ) Saves the document into the specified file. Parameters: file The file to save the document to. Returns: Returns TRUE on success. Exception: Throws a HaruException on error.

HaruDoc::resetStream

(PECL haru >= 0.0.1) Rewind the temporary stream bool HaruDoc::resetStream ( void ) Rewinds the temporary stream of the document. Returns: Returns TRUE on success. Exception: Throws a HaruException on error. See also: HaruDoc::saveToStream() - HaruDoc::getStreamSize(