Don, Bruce,

I adjusted the pdf and cgi. Now, when the form first comes up, a couple of
checkboxes are on. Then the cgi lights one up and turns one off.

http://scinux.redwoods.edu/online_testing/GenerateFDF.pdf

username: winnie
password: thepooh

The new cgi:

#! /usr/local/bin/perl -w
# File: GenerateFDF.pl

use strict;
use Acrobat::FDF;

my $outFdf = new Acrobat::FDF;

$outFdf->SetFile('http://scinux.redwoods.edu/online_testing/GenerateFDF.pdf');

$outFdf->SetValue('Date', "June 11, 2001", false);
$outFdf->SetValue('Name', "John Clay", false);
$outFdf->SetValue('Address', "12 Saratoga Ave", false);
$outFdf->SetValue('City', "Saratoga", false);
$outFdf->SetValue('State', "CA", false);
$outFdf->SetValue('cb.first',"Off",false);
$outFdf->SetValue('cb.second','Yes',false);

$| = 1; # autoflush, so that the HTTP header is emitted immediately

print "Content-type: application/vnd.fdf\n\n";
$outFdf->Save("-");


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to