PDF Paragraphs

PDF Paragraphs

am 23.01.2007 21:22:27 von Ben Eagle

This is a multi-part message in MIME format.

--===============0723402520==
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C73F2C.333EE2FE"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C73F2C.333EE2FE
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

One of the last problems I am having,

=20

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.

=20

Has anyone got this feature to work and if so and you please shed some
light on it for me??

=20

Thanks for all the Help


------_=_NextPart_001_01C73F2C.333EE2FE
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">












style=3D'font-size:10.0pt;
font-family:Arial'>One of the last problems I am =
having,



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>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.



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Has anyone got this feature to work and if so and you =
please
shed some light on it for me??



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Thanks for all the Help









------_=_NextPart_001_01C73F2C.333EE2FE--

--===============0723402520==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0723402520==--

RE: PDF Paragraphs

am 25.01.2007 10:27:38 von Brian Raven

From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Ben
Eagle
Sent: 23 January 2007 20:22
To: perl-unix-users@listserv.ActiveState.com
Cc: activeperl@listserv.ActiveState.com
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
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs