PHP - Manual: HaruDestination::setFitR
2024-11-15
(PECL haru >= 0.0.1)
HaruDestination::setFitR — Set the appearance of the page to fit the specified rectangle
$left
, float $bottom
, float $right
, float $top
) : boolDefines the appearance of the page to fit the rectangle by the parameters.
left
The left coordinates of the page.
bottom
The bottom coordinates of the page.
right
The right coordinates of the page.
top
The top coordinates of the page.
Returns TRUE
on success.
发生错误时抛出 HaruException 异常。
官方地址:https://www.php.net/manual/en/harudestination.setfitr.php