Planet PDF Forum Archive

Planet PDF ForumThe page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2008. Would you believe we have a 2nd forum archive which covers 2008 - 2011? But... if you really want to bust-a-move head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner discussions to in-depth developer and pre-press discussions.


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) Forms & FDF


Topic: Need an example PDF form that submits FDF
Conf: (P-PDF) Forms & FDF, Msg: 155781
From: johnlabella
Date: 11/3/2006 11:35 PM

YOu asked for an example of a PDF form that submits to FDF?

This script may be what you asked for:

Create a button called "Submit" on the PDF. Go to "Actions, mouse up" and and Add a JavaScript (Acrobat 5 approach, not sure if it's different in versions 6 or 7). Then paste the following java script into the console window. This script directs the PDF to export ONLY SELECTED FIELDS to the fdf, and it exports them to the local computer on which the original PDF resides. You can then email these FDFs to someone else - but the recipient will need to 1) have the same Master PDF form in order to view the FDF data, or else 2) you will need something like FDF converter, which turns FDF files into a .csv file, allowing you to view many FDF files as rows of data. (BYW, I really like FDF converter from PDF-office.com and use it alot. The instructions could be a little clearer for laypersons such as myself, but it's cheap and very effective for what we do)

Note that you will need to edit the following script to contain *only the names of the fields that your own PDF contains*. If you make a mistake and type a field name in the script below that does not exist on your PDF, then the fields following in the script may not save to the FDF file - so watch those typos!


Note also that if you use FDF converter, things will get complicated if you try to export more than 256 fields from a PDF.

Best wishes,

John LaBella


******
javascript begins - you can add more fields to this script.


//Export Data from these fields ONLY

var myArray = new Array();
var i =0;

//Build Array to Export

myArray[i]= "agencyExit-exitDate";
i++;
myArray[i]= "agencyName";
i++;
myArray[i]= "bedNight-exitDate";
i++;
myArray[i]= "bedNight-intakeDate";
i++;
myArray[i]= "bedNight-quarterlyTotal";
i++;
myArray[i]= "bedNight-SafeHome";
i++;



//Export Array as FDF

this.exportAsFDF(true, true, myArray);



PDF In-Depth Free Product Trials Ubiquitous PDF

LockLizard Safeguard PDF Security

Made specifically for publishers of high value information published in PDF format, it protects your PDF...

Download free demo

ARTS PDF Aerialist X

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Ubiquitous PDF: DIY PDF magazines, courtesy of CNET and Magazinify

Thanks to Magazinify.com, it's possible to have web articles delivered right to your inbox in PDF form. If that weren't enough, the nice folks at CNET have been nice enough to publish a step-by-step guide about how to set this all up using just a little time and a free Magazinify account.

September 06, 2011
Search Planet PDF
more searching options...
PDF Resources
Platinum Sponsor

ARTS PDF

Create & Edit PDF - Nitro PDF Software

Silver Sponsors

LockLizard DRM PDF Security Quick PDF Library: The Unrivaled PDF Developer Toolkit

Featured Product

ARTS PDF Crackerjack X

The most popular Acrobat plug-in for PDF-based color print production and automation.

Featured Event

Adobe Digital Marketing Summit

March 20-23, 2012 -- Salt Palace Convention Center, Salt Lake City, Utah

The Digital Marketing Summit is the premier event for digital marketers and advertisers to learn about and share key strategies for driving marketing innovation. Attend Summit to learn how you can create, measure, and optimize digital experiences to revolutionize how the world engages with ideas and information.

PDF Store Categories