HaruDoc::output
HaruDoc::resetError
HaruDoc
PHP Manual

# HaruDoc::readFromStream

(PECL haru >= 0.0.1)

HaruDoc::readFromStream — Read data from the temporary stream

### Descrição

string HaruDoc::readFromStream ( int `$bytes` )

Read data from the temporary stream.

### Parâmetros

`bytes`

  The `bytes` parameter specifies how many bytes to read, though the stream may contain less bytes than requested.

### Valor Retornado

Returns data from the temporary stream.

### Erros

Throws a HaruException on error.

### Veja Também

- HaruDoc::saveToStream - Save the document into a temporary stream
- HaruDoc::resetStream - Rewind the temporary stream
- HaruDoc::getStreamSize - Get the size of the temporary stream

HaruDoc::output
HaruDoc::resetError
HaruDoc
PHP Manual