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,010
  • 13
  • 100
  • 141
Awan
  • 17,116
  • 34
  • 87
  • 129

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,313
  • 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
  • 60,131
  • 6
  • 78
  • 90