chapter_page php,PHP - Manual: ps_begin_page (官方文档)

说明

ps_begin_page

( resource $psdoc

, float $width

, float $height

) : bool

Starts a new page. Although the parameters width

and height imply a different page size for each

page, this is not possible in PostScript. The first call of

ps_begin_page() will set the page size for the whole

document. Consecutive calls will have no effect, except for creating a new

page. The situation is different if you intent to convert the PostScript

document into PDF. This function places pdfmarks into the document which

can set the size for each page indiviually. The resulting PDF document will

have different page sizes.

Though PostScript does not know different page sizes, pslib places

a bounding box for each page into the document. This size is evaluated

by some PostScript viewers and will have precedence over the BoundingBox

in the Header of the document. This can lead to unexpected results when

you set a BoundingBox whose lower left corner is not (0, 0), because the

bounding box of the page will always have a lower left corner (0, 0)

and overwrites the global setting.

Each page is encapsulated into save/restore. This means, that most of the

settings made on one page will not be retained on the next page.

If there is up to the first call of ps_begin_page() no

call of BoundingBox and possibly Orientation

before any ps_begin_page() calls.

Note:

Up to version 0.2.6 of pslib, this function will always overwrite

the BoundingBox and Orientation, if it has been set before with

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值