开发者

How to print text to an existing pdf file?

开发者 https://www.devze.com 2023-01-25 12:46 出处:网络
I have created new PDFs many times开发者_开发百科 using Zend and PHP. But Now I have a patient form in PDF format and I have to fill that form using my application. How can I print text on existing PD

I have created new PDFs many times开发者_开发百科 using Zend and PHP. But Now I have a patient form in PDF format and I have to fill that form using my application. How can I print text on existing PDF file with already have some text. Is it possible ?

Thanks


I haven't done it, but it certainly seems possible. See Zend_Pdf::load(), for example. It seems like you ought to be able to load the PDF, manipulate it, and save then save it somewhere.

Last time I had to do this, Zend_Pdf wasn't around, and I ended up using fpdf/fpdi, which was ugly but worked fine.


Does the PDF contain form fields ? If so you can use FDF type functions.

See Filling PDF Forms with PHP - there should be a solution in there somewhere.

0

精彩评论

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

关注公众号