PHP - Manual: HaruDestination::setXYZ
2024-12-21
(PECL haru >= 0.0.1)
HaruDestination::setXYZ — Set the appearance of the page
$left
, float $top
, float $zoom
) : bool
Defines the appearance of the page using three parameters:
left
, top
and
zoom
.
left
The left position of the page.
top
The top position of the page.
zoom
The magnification factor. The value must be between 0.08 (8%) and 32 (3200%).
Returns TRUE
on success.
发生错误时抛出 HaruException 异常。
官方地址:https://www.php.net/manual/en/harudestination.setxyz.php