From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Eagle
Sent: 23 January 2007 20:22
To: [email protected]
Cc: [email protected]
Subject: PDF Paragraphs
> One of the last problems I am having,
>
> I need to make paragraphs in PDF API2, I have yet been able to get
anything to work. Nor is there any good
> documentation anywhere on it, and the ones that there is do not work.
>
> Has anyone got this feature to work and if so and you please shed some
light on it for me??
See PDF::API2::Simple. For example:
use strict;
use warnings;
use PDF::API2::Simple;
use Text::Greeking;
my $pdf = PDF::API2::Simple->new(
file => 'output.pdf'
);
$pdf->add_font('VerdanaBold');
$pdf->add_font('Verdana');
$pdf->add_page();
my $g = Text::Greeking->new;
$g->paragraphs(1,1);
for (1..100) {
my $text = $g->generate;
$pdf->text($text, autoflow => 'on');
}
$pdf->save();
HTH
--
Brian Raven
_________________________________________
The information contained in this e-mail is confidential and solely
for the intended addressee(s). Unauthorised reproduction, disclosure,
modification, and/or distribution of this email may be unlawful. If you
have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message
do not necessarily reflect those of Atos Euronext Market Solutions.
_________________________________________
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message do not
necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail
vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre
systeme. Le contenu de ce message electronique ne represente pas necessairement
la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs