使用 Zend PDF 在最后一页绘制图像?
我知道有drawImage函数来绘制图像。我想要的只是将图像打印到 PDF 的最后一页底部。我怎样才能做到这一点?这就是功能:
page->drawImage($image, $imageTopLeft, $imageTop, $imageBottomRight, $imageBottom);
在此处添加坐标将在给定位置的每个页面上绘制它,不是吗?
谢谢!
I know there is the drawImage function to draw an image. What i want is to only print my image to the last page of the PDF, on the bottom. How can I do that? This is the function:
page->drawImage($image, $imageTopLeft, $imageTop, $imageBottomRight, $imageBottom);
Adding coordinates here will draw it on every page on the given location, wont it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您像这样创建 PDF 和页面:
您可以这样做:
如果您想找到文本宽度来调整其他元素,您可以使用此函数:
然后只需调用:
If you create your PDF and Pages like this:
You can than do this:
If you want to find text width to adjust other elements you can use this function:
and than you jus call: