Reputation: 47
I am having pdf file.I want to fill some form field in pdf with data from mysql. Using php data should be fetched from mysql & added at specific position in pdf file.
Can some one suggest me how can add mysql data at specific position in pdf file?
Upvotes: 0
Views: 2788
Reputation: 2750
Use TCPDF, fetch your data from mysql pass it to tcpdf function.
You will find plenty of examples & working codes here: http://www.tcpdf.org/examples.php
~K
If you want to create complete PDF using tcpdf then you can go ahead with it. This approac will allow you to make any change with ease in future prospective. There is a import class in TCPDF which i think is still in development.
If you want to use existing pdf & make few changes in it. Look at FPDI, check example here:
Upvotes: 3