Solved

capture form field data inside a pdf

Posted on 2007-04-09
7
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript Regex 7 20
JQuery conflicts/syntax issue 4 25
javascript and jquery question 4 26
Collapse in/out from a "a href" each row containing different id 5 47
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
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…

726 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