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: Got holiday catering?

Bret Thompson, chef and owner of LA's Milk restaurant on Beverly, has joined forces with the California Milk Processor Board to compile a set of dairy-based recipes for the holiday season.

November 20, 2008
Search Planet PDF
more searching options...






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

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Solid Documents - PDF to Word Converter

Debenu: Desktop Document Management, Archiving and Tagging Software Visual Integrity: Convert, Create, Extract, Merge and Modify PDF

SmartSoft

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

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories