FDF files are just simple text files that are very easy to create with CF.
Here's an example:
<cfoutput>%FDF-1.2
%âãÏÓ
1 0 obj
<<
/FDF << /Fields
[
<<
/T(issuedate)
/V(#dateformat(rs.cert_issue_dt,"mm/dd/yyyy")# )
>>
]
/F(http://#cgi.HTTP_HOST#/files/certificate.pdf)
>>
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF</cfoutput>
Just keep repeating the /T command which is the text box name in the pdf form and the /V command which is the value you want inserted.
The /F command needs to point to the parent pdf file. I believe that Acrobat (not reader) will actually make the fdf file for you and then you'd just need to edit the file. On caveat, don't edit the file with notepad. Notepad doesn't correctly render the CR after the first line "%FDF-1.2".
I serve these on the fly using the cfcontent tag and so far, this has been a painless endeavor.
--
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com
> -----Original Message-----
> From: Jeff Small [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 07, 2004 8:43 AM
> To: CF-Talk
> Subject: I don't even know what I need to be able to do this...[fdf/cf]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

