1

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

Charles
  • 50,943
  • 13
  • 104
  • 142
Awan
  • 18,096
  • 36
  • 89
  • 131

2 Answers2

1

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.

Community
  • 1
  • 1
Andrew Cash
  • 2,321
  • 1
  • 17
  • 11
1

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.

timdev
  • 61,857
  • 6
  • 82
  • 92