Solved

capture form field data inside a pdf

Posted on 2007-04-09
7
236 Views
Last Modified: 2013-12-24
Hi.  I'm trying to capture form field data inside a pdf.  How can I do that using coldfusion?  I also need to add a submit button inside the pdf and apply an action to it.  I basically want it so that when the user clicks on the submit button, the data is sent to a page.  I can do the rest from there (db insert, cfmail, etc) but am unfamiliar with using pdf forms.
0
Comment
Question by:COwebmaster
  • 4
  • 3
7 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 18875965
if you are using MX7* it's simple to display pdfs...


<cfdocument format="pdf" >

Your html and cfoutput here

</cfdocument>


http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000236.htm

You can add css styles and stylesheets as lo9ng as they are in the cfdocument tag.

however you can not create pdf forms -natively- ie: not without doing some additional work...

this claims to work...haven't tried it myself...

http://coldfusion.sys-con.com/read/101219.htm



0
 

Author Comment

by:COwebmaster
ID: 18877249
I think I misunderstood.  I already created the dpf document using Acrobat 7.0.  I just want to output the form field data to a cfm page like you do on an html page using <form action..>
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 18878017
it should be exactly the same just set your form action to your cfm file and do whatever you want with it...

0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:COwebmaster
ID: 18878275
It's not working.  My cfm page is saying that the field is undefined.  However, the submit button inside the pdf is set to FDF and the url is pointing to the cfm file with #FDF at the end of the url.  Should the action be set to HTML to do what you're talking about?
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 18878436
your form post will need to be pointing to the cfm page for it to be able to do anything with it... (i'm guessing you'd set that in the fdf settings)

<form method = "post" action="yourCFMFile.cfm">
form fields
</form>

also make sure you scope your variables properly (ie: with form. )

<cfquery...>
insert into foo (bar, noo) Values (#form.foo#, #form.noo#)
</cfquery>





0
 

Author Comment

by:COwebmaster
ID: 18878559
Sorry, my mistake.  The form is inside the pdf.  It's a pdf form.  It's not a form I'm generating from a coldfusion page.  I just want to export out the field data that's being inputed from within the pdf form to a coldfusion page.  I created the form using Acrobat 7.0
0
 

Author Comment

by:COwebmaster
ID: 18878729
I'm going to post a new question.
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

8 Experts available now in Live!

Get 1:1 Help Now