tcpdf - Populate editable PDF form fields with php -


i've got existing pdf form office has created has form fields user fill out (electronically) , print. before passing user open existing pdf , populate (if not all) of data using php. i've looked extensions tcpdf , fpdi, i'm unable confirm want possible looking @ examples , documentation. have of done before?

i did see tcpdf::setformdefaultprop, looked promising...

pdftk has fill_form command. since doesn't have php bindings you'll have install on server , invoke exec() et al it's pretty easy. use you'll have generate fdf file, pdftk given generate_fdf command, plug desired data it. can find information on fdf files here , example php code here , here. in truth think put generated fdf file in pdf script and, given right escaping, fill values in string, pipe pdftk fill_form.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -