Solved

capture form field data inside a pdf

Posted on 2007-04-09
7
237 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

863 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

22 Experts available now in Live!

Get 1:1 Help Now