开发者

How can I determine where in the PDF to place content using Zend PDF?

开发者 https://www.devze.com 2023-03-31 16:08 出处:网络
I am creating a PDF using Zend\'s built-in PDF engine; however how can I determine in what dimension (height, width - x, y) where to place the text on a plain A4 layout page?

I am creating a PDF using Zend's built-in PDF engine; however how can I determine in what dimension (height, width - x, y) where to place the text on a plain A4 layout page?

I understand 开发者_如何学C0,0 is bottom,right (for some reason) - but what is the top/left values?


Call getWidth() and getHeight() on your PDF Page object to get the page size and figure it out from there.

The value is in "points" (1/72 of an inch).

More Info in Documentation

0

精彩评论

暂无评论...
验证码 换一张
取 消