# HaruDoc::setOpenAction

(PECL haru:0.0.1)

HaruDoc::setOpenAction — Define which page is shown when the document is opened

### Description

bool HaruDoc::setOpenAction ( object `$destination` )

Defines wich page should be shown when the document is opened.

### Parameters

`destination`

  A valid HaruDestination instance.

### Return Values

Returns `TRUE` on success.

### Errors/Exceptions

Throws HaruException on error.