Main > Multimedia > Graphics >

PDF::API2::Simple 1.1.2

PDF::API2::Simple 1.1.2

Sponsored Links

PDF::API2::Simple 1.1.2 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.030 MB
Platform: Any Platform
License: Public Domain
Price:
Downloads: 870
Date added: 2007-06-12

PDF::API2::Simple 1.1.2 description

PDF::API2::Simple is a simplistic wrapper for the excellent PDF::API2 modules.

SYNOPSIS

use PDF::API2::Simple;

my $pdf = PDF::API2::Simple->new(
file => output.pdf
);

$pdf->add_font(VerdanaBold);
$pdf->add_font(Verdana);
$pdf->add_page();

$pdf->link( http://search.cpan.org, A Hyperlink,
x => 350,
y => $pdf->height - 150 );

for (my $i = 0; $i < 250; $i++) {
my $text = "$i - All work and no play makes Jack a dull boy";

$pdf->text($text, autoflow => on);
}

$pdf->save();

Take note that PDF coordinates are not quite what youre used to. The coordinate, (0, 0) for instance is at the lower-left hand corner. Thus, x still grows to the right, but y grows towards the top.

METHODS

new
PDF::API2::Simple->new(
file => output.txt,
width => 612,
height => 792,
line_height => 10,
margin_left => 20,
margin_top => 20,
margin_right => 20,
margin_bottom => 50,
width_right => 0,
height_bottom => 0,
effective_width => 0,
effective_height => 0,
header => undef,
footer => undef,
);

Creates a new PDF::API2::Simple instance. A good strategy is to create a new object for each pdf file you want to create. That is, of course, up to you.

file - The PDF file you want to write to. No default, parameter required

width - The width of the PDF file. Defaults to 612, the 8 1/2 x 11 US Letter width

height - The height of the PDF file. Defaults to 792, the 8 1/2 x 11 US Letter height

line_height - The standard height you want to define for lines. The default is 10

margin_left - The amount of margin space you want on the left side. Of course, you can specify whatever coordniates you want. Default is 20

margin_top - The amount of margin space you want on the top of each page. Default is 20

margin_right - The amount of margin space you want of the right side of each page. Default is 20

margin_bottom - The amount of margin space you want on the bottom of each page. Default is 50

width_right - A convenience property that contains the furthest x of the page, accounting for the margins specified

height_bottom - A convenience property that contains the largest y of the page, accounting for the bottom margin

effective_width - A convenience property that contains the width of the page, after the left and right margin have been accounted for

effective_height - A convenience property that contains the height of the page, after the top and bottom margin have been accounted for

header - This CODE reference will be called everytime a page is appended to the PDF, allowing you to specifiy a header for your pages

footer - This CODE reference will be called everytime a page is ended, allowing you to specifiy a footer for your pages

open
PDF::API2::Simple->open(
open_file => my_pdf.pdf,
open_page => 1, # Default is 1.
# Any other options to new.
);

This method opens an existing PDF for editing. You can include any other arguments that are valid for new and they will be set in the resulting object.

PDF::API2::Simple 1.1.2 Screenshot

Advertisements

PDF::API2::Simple 1.1.2 Keywords

Bookmark PDF::API2::Simple 1.1.2

Hyperlink code:
Link for forum:

PDF::API2::Simple 1.1.2 Copyright

WareSeeker periodically updates pricing and software information of PDF::API2::Simple 1.1.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of PDF::API2::Simple 1.1.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
PCL::Simple is a Perl module to create PCL for printing plain text files. Free Download
pdfSplit in an application that makes it possible to separate and re-arrange the order of the pages in an Adobe Acrobat PDF file Free Download
AgileTrack is a Java based application for tracking software development in agile development teams. Free Download
Simple Flash Menu is a tool for making nested menus for HTML pages. Free Download
PDF::API2 is The Next Generation of Text::PDF::API, a Perl module-chain that facilitates the creation PDF files. Free Download
ePDFView is a lightweight PDF Viewer. Free Download
PDF::Table is a utility class for building table layouts in a PDF::API2 object. Free Download
kpdfimagestool is a service menu for KDE. Free Download