NAME

PDF::Maki - Useful wrappers for PDF::API2.

SYNOPSIS

use PDF::API2;
use PDF::Maki;
#

DESCRIPTION

PDF::Maki installs several alternative/additional methods into the PDF::API2 namespaces so advanced features become available outside the normal fixing/patch cycle of PDF::API2.

Stable methods will be migrated to PDF::API2 on fixed release states.

PDF::API2 Methods

$pdf->register_face $fontobj, $facename, $weightname, $stylename

*** DEVELOPER VERSION ***

register font for face/weight/style.

$fontobj = $pdf->lookup_face $facename, $weightname, $stylename

*** DEVELOPER VERSION ***

looking up the spec. face/weight/style or falling back to the default face.

$fontobj = $pdf->lookup_font $facename, $weightname, $stylename

*** DEVELOPER VERSION ***

looking up the spec. face/weight/style or falling back to alternative styles/weights.

PDF::API2::Page Methods

$width = $page->textlabel $x, $y, $font, $size, $text, %options

*** DEVELOPER VERSION ***

Applys text with options and returns the width of the given text.

Example:

$page->textlabel(300,700,$myfont,20,'Page Header',
    -rotate => -30,
    -color => '#FF0000',
    -hspace => 120,
    -center => 1,
);

This simply a proxy-method to the equivalent PDF::API2::Content method.

$page->textmarkup $xml, %options

*** EXPERIMENTAL VERSION ***

Example:

$utr=$pdf->corefont('Times-Roman', -encode=>'latin1');
$page->textmarkup($xml,
    -x=>100,
    -y=>700,
    -w=>400,
    -fontreg=>[
        [ $utr,'times','regular','regular' ],
        [ $utb,'times','bold','regular' ],
        [ $uti,'times','regular','italic' ],
        [ $utz,'times','bold','regular' ],
    ]
);

AUTHOR

alfred reibenschuh

HISTORY

$Log: Maki.pm,v $
Revision 1.1.1.1  2005/02/17 14:51:57  fredo
no message