[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP and PDF Forms

Posted on 2005-05-05
8
Medium Priority
?
590 Views
Last Modified: 2008-02-01
I need to:

1. Display a PDF file online that has form fields, then....
2. Allow users to fill out those fields, then....
3. Click a submit button, then....
4. Send that PDF -- with the form fields filled in -- to a person's email account.

Is there a way to do this using ASP on an IIS server? Do I need to install any specific *.dll files onto the server.

Thanks for the help.
0
Comment
Question by:Chi_Lambda
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 6

Expert Comment

by:iscode
ID: 13937555
this should get you started
Fpdf. Pdf without components

http://www.aspxnet.it/public/default.asp

iscode
0
 
LVL 6

Expert Comment

by:iscode
ID: 13937579
FPDF is one class written in pure asp for the pdf generation.
That means that the installation of members for the pdf generation is not necessary.

0
 

Author Comment

by:Chi_Lambda
ID: 13986843
iscode:

Thanks for the information but my Italian is a bit rusty. :)

I'm not really sure how to work the class. Any other ideas?.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 6

Expert Comment

by:iscode
ID: 13994570
MY Italian is as bad Chi_Lambda :)

No sorry this is the only pdf class I know of,
there is a translation to english there though at some point,
samples, manual and forum if you didnt look close enough.

good luck
iscode
0
 

Author Comment

by:Chi_Lambda
ID: 14047671
I found the way how to do it:

1. Open the file in Adobe Acrobat.
2. Create a Submit button somewhere on the PDF document.
3. Right click on the button: select Properties | Actions tab
4. Select Mouse Down, the click Add button, then select Submit Form. Click Set Action.
5. Under Actions tab again select Submit Form, then click Edit.
6. Click Select URL
7. Enter the name of the ASP page that will do the receiving and sending of the PDF.

Next, I create the ASP to capture the PDF form information and send it to my designated recipient. Basically, I do a request.binaryread since the PDF will be transmitted as a binary string to my ASP page. Then, using the JMail email component, I send that file as an AddCustomAttachment to the recipient:

<%@ LANGUAGE = VBScript%>
<%
dim JMail
dim file
Dim strTemp

starttime = Now

Set JMail = Server.CreateObject("JMail.SMTPMail")

file = Request.BinaryRead(Request.TotalBytes)
For i = 1 to LenB(file)
      strTemp = strTemp & chr(AscB(MidB(file,i,1)))
Next

JMail.ServerAddress = "mail.myserver.com"
JMail.Sender = "webmaster@myserver.com"
JMail.Subject = "PDF Form Submitted!"
JMail.AddRecipientex "john@myserver.com", "John Doe"
body = "Please see attached PDF"
JMail.Body = body
JMail.AddCustomAttachment "pdf_application.pdf", strTemp
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.Execute
set JMail = nothing

Response.Write("PDF Uploaded and emailed in " & DateDiff("s",starttime,now) & " seconds.")
%>

0
 
LVL 22

Expert Comment

by:WMIF
ID: 15446397
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.  I will make a recommendation to the moderators on its resolution in a week or two.  I appreciate any comments that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete without refund of points.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade.  It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the asker does not know how to close the question, the options are here:
http://www.experts-exchange.com/help.jsp#hs5

WMIF
EE Cleanup Volunteer
0
 
LVL 22

Expert Comment

by:WMIF
ID: 15476956
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.  I will leave the following recommendation for this question in the Cleanup topic area:
PAQ/No Refund

Any objections should be posted here in the next 4 days.  After that time, the question will be closed.

WMIF
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 15504070
PAQed with no points refunded (of 350)



Computer101
EE Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 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