HaruDoc::resetStream
HaruDoc::saveToStream
HaruDoc
PHP Manual

# HaruDoc::save

(PECL haru >= 0.0.1)

HaruDoc::save — Save the document into the specified file

### Description

bool HaruDoc::save ( string `$file` )

Saves the document into the specified file.

### Parameters

`file`

  The file to save the document to.

### Return Values

Returns `TRUE` on success.

### Errors/Exceptions

Throws a HaruException on error.

### See Also

- HaruDoc::output() - Write the document data to the output buffer

HaruDoc::resetStream
HaruDoc::saveToStream
HaruDoc
PHP Manual