Solved

capture form field data inside a pdf

Posted on 2007-04-09
7
238 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
*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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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…

776 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