how to generate PDF and save a copy on client?
Posted: Thu Aug 04, 2005 8:55 pm
I have a hardcopy PDF form and now I want to create an applicant which reads data from database and fills the PDF form. Users should be able to save this filled form.
I have tried one method. I created a PDF form (with defined text fields) and I generate a FDF file using information from the database. When a user clicks on download, the FDF populates the PDF form and displays to the user.
Problem: User sees a completed form but can't download the COMPLETED form. In this case, I am able to print the completed form or download the original form (without any data filled in) but not able to download the completed form.
If I use CPDF library then I need to specify each fields' dimensions and position which is a pain because the number of fields is very high and I need to do a few forms.
Whats the best way to approach this problem? I want to create a PDF from Database and allow user to save it as well.
Any help is appreciated.
Vivek
I have tried one method. I created a PDF form (with defined text fields) and I generate a FDF file using information from the database. When a user clicks on download, the FDF populates the PDF form and displays to the user.
Problem: User sees a completed form but can't download the COMPLETED form. In this case, I am able to print the completed form or download the original form (without any data filled in) but not able to download the completed form.
If I use CPDF library then I need to specify each fields' dimensions and position which is a pain because the number of fields is very high and I need to do a few forms.
Whats the best way to approach this problem? I want to create a PDF from Database and allow user to save it as well.
Any help is appreciated.
Vivek