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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    PDF::CreateSimple 1.1

    Download button

    No screenshots available
    Downloads: 608  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

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

     Read user reviews (0)  Refer to a friend  Subscribe

    PDF::CreateSimple description

    PDF::CreateSimple Perl module will let you create simple PDF files using a set of eary to use function.

    PDF::CreateSimple Perl module will let you create simple PDF files using a set of eary to use function. You can either create a file from scratch or start using an already existing file.

    SYNOPSIS

    use PDF::CreateSimple;

    my $pdfFile = PDF::CreateSimple->new($pdfPath);

    #-----------------------------------------------------------------------------
    # Add a new page
    #-----------------------------------------------------------------------------

    $pdfFile->addNewPage;

    #-----------------------------------------------------------------------------
    # Write Text
    #-----------------------------------------------------------------------------

    $pdfFile->drawText('See what it can do!','Verdana',12,400,200,'cyan');

    #-----------------------------------------------------------------------------
    # Create Straight and Curved Lines
    #-----------------------------------------------------------------------------

    $pdfFile->drawLine(0,0,50,50,1,'black');
    $pdfFile->drawCurve(0,0,50,50,100,50,1,'olive');

    #-----------------------------------------------------------------------------
    # Create Hollow Geometric Figures
    #-----------------------------------------------------------------------------

    $pdfFile->drawRectangle(0,0,50,50,2,'blue');
    $pdfFile->drawPolygon([10,15,20,25,25,30,50,100,50,200],2,'orange');

    #-----------------------------------------------------------------------------
    # Create Filled Geometric Figures
    #-----------------------------------------------------------------------------

    $pdfFile->drawCircle(100,100,30,3,'black','green');
    $pdfFile->drawSquare(150,100,30,1,'olive','red');

    #-----------------------------------------------------------------------------
    # Import Images (png,pnm,tiff,gif,jpg) and other PDF Files
    #-----------------------------------------------------------------------------

    $pdfFile->drawImage('some_img.jpg',150,150,1.75);
    $pdfFile->drawImage('some_other_img.jpg',350,150,200,200);
    $pdfFile->importPage('source_pdf');

    #-----------------------------------------------------------------------------
    # Save And close
    #-----------------------------------------------------------------------------

    $pdfFile->closeFile;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PDF creator | eary function | Perl module | PDF | eary | functions

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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