Solved

Open a PDF from webserver Let user fill online then save back to webserver

Posted on 2013-12-03
6
1,372 Views
Last Modified: 2013-12-03
ASP.net C# Developer, I would like to open a user specific PDF stored on a web server, the user could then fill out the PDF as a fillable form. When they are done, they would click a save button and the form, along with what they typed in the blanks would be saved back into the user's directory on the webserver.

I don't need or want to save the form field information, just the filled out form itself.

Can this be done with simple C# asp.net tools? I know of some off the shelf programs that do something like this, just hoping there is an easy I/O way to get it done.
0
Comment
Question by:bcolladay
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
When you create a form in acrobat pro, you can program where the data goes.  In the form designer, create a button. Then on the button properties, go to Actions.  Use the "Select An Action" drop down to Submit a form. Click the Add button from there you get a pop up for a url to submit the form data.    You would use your .NET code to collect the form data and update the db.  

If you want the form saved as a pdf, you would change the action item drop down from submitting a form to a menu item and choose Save As.  Then you would need to instruct your user to upload the pdf and use your .NET page to accept the upload and save it.
0
 
LVL 4

Author Comment

by:bcolladay
Comment Utility
It is the second part that I am wanting, except what I want is someway to do this automatically so the end user doesn't have to upload something.  

So in my mind: The end user would click on a link that maybe opens the pdf in an iframe and outside the iframe in the web page there would be a "save" button. When the save button is clicked, the filled-out form is saved back on my web server as a pdf with the information they typed saved as well.

I don't want to save the data from the form and I don't want to rely on the user to upload the correct file.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
Comment Utility
That is what I thought you wanted.  I'm not sure why you need an iframe though.  I believe the pdf will be on the client's computer so serverside code would not come into play to do what I described although you would still need to use serverside code to accept the upload and save to the server.  

Now the question is how to use client side code to save the pdf and then upload it.  Thinking out loud, in order to save the pdf, it has to go to the hard drive and therefor, browser code (javascript) couldn't come directly into play.  You would need to use a java applet or adobe air? to save or perhaps a macro.  But then there is the part of auto uploading.  I think all of this would need to be done in an applet or air?  

It may be easier to just have a form on the site that once filled in will generate a pdf and save to the server. This way, nothing is on the client.   http://www.asppdf.com/manual_09.html

Or if you use acrobat to post to a url, the serverside code would accept the data, and create a pdf on the fly serverside.  

I think it is too much trouble to try and open the pdf client side and then automatically save and upload.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Author Comment

by:bcolladay
Comment Utility
I believe you are correct. Just wanted to see if I had missed anything. This is for a medical portal, that has several, more than 20, clinics, they all have their own forms (5 - 15 per clinic) for new patients, medical history, etc.

Right now all I do is open their .doc files, convert them to fill-able form pdfs and upload them. They are all unique, so I am wanting to avoid parsing the data or recreating the form for each clinic.

The best work around is the print to pdf / save pdf and have them upload it. I just don't think end users read or follow instructions very well. I think most of them are unwilling to do this. I will talk to my clinics and see if this is an acceptable method. SO many browsers and so many versions of Adobe Reader.
0
 
LVL 4

Author Closing Comment

by:bcolladay
Comment Utility
Not what I was hoping for but I believe it to be accurate.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
For the type of info you are gathering, it would probably be safer to store the data to a db rather then the entire form anyway. Then just recreate a pdf programmatically when needed.  At least with storing data to the db you can encrypt it and it does not take up as much space.  With documents, you have to upload to the server, then use your scripting to move the document outside of the www so it can not be accessed accidentally.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
This video is the second in a two-part series that discusses PaperPort's "Send To Bar" feature . The first video tutorial (http://www.experts-exchange.com/VP_207.html) explains the purpose of the Send To Bar, how to use it, and how to hide unwanted …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now