Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [HaruPage

Protect Your Website Today


PHP Manual || HaruPage

(PECL haru >= 0.0.1)

HaruPage::setSizeSet size and direction of the page

Description

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

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

Parameters

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

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws a HaruException on error.

See Also



PHP Manual || HaruPage