Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    PDF::EasyPDF 0.04

    Download button

    No screenshots available
    Downloads: 414  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.0/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mark Howe | More programs
    Perl Artistic License / FREE
    October 27th, 2007, 03:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    PDF::EasyPDF description

    PDF::EasyPDF allows PDF creation from a one-file module, with postscript-like controls.

    PDF::EasyPDF allows PDF creation from a one-file module, with postscript-like controls.

    SYNOPSIS

    use PDF::EasyPDF;

    my $pdf = PDF::EasyPDF->new({file=>"mypdffile.pdf",x=>mm(297),y=>mm(210)});

    $pdf->setStrokeColor("CC0000");

    $pdf->setStrokeWidth(8);

    $pdf->rectangle(mm(10),mm(10),mm(297-20),mm(210-20));

    $pdf->setFillColor("FFCC00");

    $pdf->filledRectangle(mm(20),mm(20),mm(297-40),mm(210-40));

    $pdf->setFillColor("CC0000");

    $pdf->setFontFamily("Helvetica-Bold");

    $pdf->setFontSize(24);

    $pdf->text(mm(105),mm(210-22.5),"PDF::EasyPDF Demo");

    $pdf->lines(mm(85),mm(35),mm(90),mm(105),mm(95),mm(35),mm(100),mm(105),mm(105),mm(35),mm(110),mm(105));

    $pdf->setStrokeColor("000099");

    $pdf->curve(300,300,300,400,400,400,400,300);

    $pdf->setStrokeColor("0066FF");

    $pdf->setFillColor("00FFFF");

    $pdf->polygon(100,100,250,200,250,400,200,500);

    $pdf->filledPolygon(100,100,250,200,250,400,200,500);

    $pdf->close;

    This module started life as a workaround, on discovering that PDF::API2 and friends are extremely tricky to compile using Activestate's PerlApp utility because of the large number of runtime modules and resource files they use. The module consists of a single .pm file. It produces small PDF files, partly because it only uses the 14 standard PDF fonts. Page content is implemented using a single stream object, and the controls are vaguely postscript-like.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PDF creator | postscript-like controls | Perl module | PDF | PostScript | Perl



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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