PHP - Manual: HaruDestination::setFitR
2025-10-25
(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.
leftThe left coordinates of the page.
bottomThe bottom coordinates of the page.
rightThe right coordinates of the page.
topThe top coordinates of the page.
Returns TRUE on success.
发生错误时抛出 HaruException 异常。
官方地址:https://www.php.net/manual/en/harudestination.setfitr.php