Solved

capture form field data inside a pdf

Posted on 2007-04-09
7
241 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

808 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