File: 05_a4.pl

package info (click to toggle)
libpdf-api2-simple-perl 1.1.4u-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 823; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

BEGIN { push @INC, '../lib'; }

use PDF::API2::Simple;

my $pdf = PDF::API2::Simple->new( 
				 file => '05_a4.pdf',
				 height => 842,
				 width => 595,
				 margin_top => 80
				);

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

$pdf->text( 'This is text on an A4 pdf', x => 50, y => $pdf->height - 50 );

$pdf->save();