PDF::FDF::Simple

PDF::FDF::Simple can read and write (Acrobat) FDF files.
Download

PDF::FDF::Simple Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steffen Schwigon and Tim Schreier
  • Publisher web site:
  • http://search.cpan.org/~schwigon/PDF-FDF-Simple-0.15/lib/PDF/FDF/Simple.pod

PDF::FDF::Simple Tags


PDF::FDF::Simple Description

PDF::FDF::Simple can read and write (Acrobat) FDF files. PDF::FDF::Simple can read and write (Acrobat) FDF files.SYNOPSIS my $fdf = new PDF::FDF::Simple ({ filename => '/tmp/test.fdf' }); $fdf->skip_undefined_fields (1); $fdf->content ({ 'name' => 'Fred Madison', 'organisation' => 'Luna Lounge Ltd.', 'dotted.field.name' => 'Hello world.', 'language.radio.value' => 'French', 'my.checkbox.value' => 'On', # 'On' / 'Off' }); $fdf->save or print $fdf->errmsg; $fdf->save ('otherfile.fdf'); my $fdfcontent = $fdf->load; $fdfcontent = $fdf->load ($fdfstring); print $fdf->as_string; print "Corresponding PDF (attribute /F): ".$fdf->attribute_file."n"; print "IDs (attribute /ID): "; print $_ foreach @{$fdf->attribute_id}; print "n";Helps creating and extracting the content of FDF files. It is meant to be a simple replacement for the Adobe FdfToolkit. Therefore some of it's behavior, especially handling of diverse whitespace/newline artefacts is orientated on FdfToolkit's handling.After the extraction process the content is available within a hash reference.For creating FDF files it currently only supports setting text values. Anyway, this should be enough to create FDF files for text fields, text areas, checkboxes and radio buttons.PDF::FDF::Simple uses Parse::RecDescent and understands both, the "Kids" notation and the "dotted" notation for field names. Saving will always use the "dotted"- notation.Text fields / Text areasText fields and text areas are simply filled with the given text.Radio button groupsIn a radio button group the entry that matches exactly the field value is selected. The entries and their values are defined in the PDF where the FDF is loaded into.CheckboxesIn the PDF document into which the FDF is loaded a checkbox field is set to checked/unchecked with field values 'On' or 'Off', respectively. Requirements: · Perl


PDF::FDF::Simple Related Software