Manual do PHP
Anterior |  | Próxima

# HaruPage::setSize

(no version information, might be only in CVS)

HaruPage::setSize -- Set size and direction of the page

## Descrição

bool HaruPage::setSize ( int size, int direction )

Changes size and direction of the page to a predefined format.

## Parâmetros

`size`

  Must be one of the following values:

  `HaruPage::SIZE_LETTER`
  `HaruPage::SIZE_LEGAL`
  `HaruPage::SIZE_A3`
  `HaruPage::SIZE_A4`
  `HaruPage::SIZE_A5`
  `HaruPage::SIZE_B4`
  `HaruPage::SIZE_B5`
  `HaruPage::SIZE_EXECUTIVE`
  `HaruPage::SIZE_US4x6`
  `HaruPage::SIZE_US4x8`
  `HaruPage::SIZE_US5x7`
  `HaruPage::SIZE_COMM10`

`direction`

  Must be one of the following values:

  `HaruPage::PORTRAIT`
  `HaruPage::LANDSCAPE`

## Valores de retornado

Returns `TRUE` on success.

## Erros/Excessões

Throws HaruException on error.

## Veja também

HaruPage::setWidth()
HaruPage::setHeight()

Anterior | Principal | Próxima
HaruPage::setRotate | Acima | HaruPage::setSlideShow