Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PDF::FDF::Simple 0.21

    Download button

    No screenshots available
    Downloads: 2,592  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.4/5)
    22 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steffen Schwigon and Tim Schreier | More programs
    Perl Artistic License / FREE
    June 5th, 2009, 06:29 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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 areas

    Text fields and text areas are simply filled with the given text.

    Radio button groups

    In 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.

    Checkboxes

    In the PDF document into which the FDF is loaded a checkbox field is set to checked/unchecked with field values 'On' or 'Off', respectively.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PDF reader | FDF reader | Perl module | Acrobat | FDF | PDF

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM