Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving PDF Form

Status
Not open for further replies.

oharab

Programmer
May 21, 2002
2,152
GB
I'm sure this has been asked many times, but I can't find anything that does just what I want.
What I want is:
A PDF form that end users fill in through their browser.
They submit the form to a process which saves the data as a text file on the server, then serves back to the user a PDF which looks exactly like the PDF form, but instead of having form fields, it has the data. It would be helpful if the served back PDF could be protected against tinkering too.

This will either be running on a windows machine, using ASP, or a linux machine running whatever is required!

Can this be done? What do I need?

Ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
 
That kinda seems to do what I'm after, but I can't save the pdf with the form data merged. Is this possible? Am I missing something?

Ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
 
I'd like to do this all server side & just give the user the PDF to save onto their machine.


----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
 
Well, Reader doesn't allow the user to save a PDF with form data embedded. You can serve it to them, but they can't save it. The technique described in that link is to serve an FDF, which will go get the referenced PDF to "frame" the data.

To show a fully merged PDF/FDF, you would need to use the FDF Toolkit from Adobe.

Or, you can use the technique Chris describes, which is to "print" the PDF/FDF server side to a new PDF. The problem with that is that Acrobat isn't licensed for server use, and their server products are prohibitively expensive.

Given the limitations, you might need to rethink the problem.

For example, why serve back a PDF? How about serving back an HTML page that contains the data submitted, nicely formated with CSS styles? The user can save that, print it, even convert it to a PDF.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
The forms that they are filling in are legal documents and are producable in court if necessary so the end user needs a copy that cannot easily be altered.
Ideally the solution we go with will be able to digitally sign and protect the produced PDF too.

There may be money available to get the solution we need.
Will the FDF toolkit let me build do exactly what I need?

Ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
 
My suggestion, based on my work experience, is to:

1) Create a data-entry form. Could be PDF, could be HTML.
2) User submits the data
3) Server authors a PDF, data-inclusive
4) Server returns the PDF to user.

How can this be accomplished? A number of ways, including:

1) server produces PostScript, and renders the PostScript to a PDF with activePDF Server, adding security with activePDF Toolkit

2) server authors a PDF natively with a 3rd party PDF tool. There are several of them, it depends on the server language you want to use and the complexity of the PDF you wish to create.

If you tell me what server language you know or can use, as well as post a link to a typical PDF, I could give more specific advice.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Thomas,
Your 1-4 is exactly what I want to do.
I'm not yet sure what server this will be running on, it could be either linux or windows, I'm very much in the early stages of investigation & I can't send a form as it's confidential, but you've at least given me a starting point with ActivePDF and FDF toolkit.
I'll look into them closer.

Cheers

Ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
 
No problem. You're welcome.

If you go with a Linux/Apache server, then your host will likely support PHP. Many PHP hosting solutions include PDFLIB, a programming API for producing PDFs. Search for "PDBLIB". Be careful with versions, PHP hosts are usually several versions behind the current release.

With Windows, you'll either get classic ASP or ASP.NET. I'd suggest ASP.NET, and there are a number of tools for making PDFs with .NET components:


and so on. A Google search for "ASP.NET PDF" will reveal more.




Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top