Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Acrobat 7


Topic: Processing Acrobat 7 form in ColdFusion
Conf: (P-PDF) Acrobat 7, Msg: 135527
From: CriticalIM
Date: 6/30/2005 02:08 AM

I have struggled with the same issue for a while and finally have a solution.

Firstly, the field formatting when posting from PDF is bracketed which is a problem because CF expects that the data is an array and will throw java errors. This will happen even if you try to just read the variable. The solution I have come up with is to strip out all the garbage, ie; Brackets and page names to get just the field names and values.

The way I accomplished this was to create a CSCRIPT to set the field names to elimiate the Java error and the replace all the garbage to get just the field name and associated value.

This forum does not like cfsnippets. My code never posts correctly.

CSCRIPT Function To Escape Java Array Issue

function FormatFormField(fld) {
if(structIsEmpty(form)) return;
FormFieldValue = form[fld];
}

CFLOOP over Form.FieldNames
cfset FormatFormField(X)
FieldName = ReplaceNoCase (FieldName, "[0]", "", "ALL")>

The Value Of Field #FieldName# = #FormFieldValue#

FYI: I actually extract all the fields (500+) then create an XML packet and store it in a database, in case you are interested in doing that. Has turned out to be a flexible and easy solution.

Allen
Webmaster BLX




PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Printable PDF 2010 calendars

With the new year just around the next bend, you might be looking to update your calendars. Thanks to Vertex42.com, users can now download and print a free PDF calendar for 2010. The page lets visitors select from a variety of styles and offers both yearly and monthly calendars.

December 10, 2009
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories