PDF API2 and PDF::Table can"t get text_block to work
am 15.01.2007 18:23:12 von Ben EagleThis is a multi-part message in MIME format.
--===============0087732832==
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C738C9.D586CFF4"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C738C9.D586CFF4
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Trying to add a paragraph to a pdf using PDF::API2 also using PDF::Table
=20
I know there is a text_block function however I can't get it to work and
there is not much doncumentation that clearly explains this function...
=20
=20
Has anyone ever used this or knows how to??
=20
($width_of_last_line, $ypos_of_last_line, $left_over_text) =3D
$pdftable->text_block(
$txt,
$text_to_place,
-x =3D> $left_edge_of_block,
-y =3D> $baseline_of_first_line,
-w =3D> $width_of_block,
-h =3D> $height_of_block,
[-lead =3D> $font_size * 1.2 | $distance_between_lines,]
[-parspace =3D> 0 | $extra_distance_between_paragraphs,]
[-align =3D> "left|right|center|justify|fulljustify",]
[-hang =3D> $optional_hanging_indent,]
);
=20
=20
that's all the sample it gives but I can not get it to work, help
please....
------_=_NextPart_001_01C738C9.D586CFF4
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
charset=3Dus-ascii">
style=3D'font-size:10.0pt;
font-family:Arial'>Trying to add a paragraph to a pdf using PDF::API2 =
also
using PDF::Table
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I know there is a text_block function however I =
can’t
get it to work and there is not much doncumentation that clearly =
explains this
function…
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Has anyone ever used this or knows how =
to??
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'> ($width_of_last_line, $ypos_of_last_line, =
$left_over_text)
=3D $pdftable->text_block(
style=3D'font-size:10.0pt;
font-family:Arial'> $txt,
style=3D'font-size:10.0pt;
font-family:Arial'> $text_to_place,
style=3D'font-size:10.0pt;
font-family:Arial'> =
-x =3D> =
$left_edge_of_block,
style=3D'font-size:10.0pt;
font-family:Arial'> =
-y =3D> =
$baseline_of_first_line,
style=3D'font-size:10.0pt;
font-family:Arial'> -w =
=3D> $width_of_block,
style=3D'font-size:10.0pt;
font-family:Arial'> =
-h =3D> =
$height_of_block,
style=3D'font-size:10.0pt;
font-family:Arial'> [-lead =3D> =
$font_size * 1.2 | $distance_between_lines,]
style=3D'font-size:10.0pt;
font-family:Arial'> [-parspace =3D> 0 | =
$extra_distance_between_paragraphs,]
style=3D'font-size:10.0pt;
font-family:Arial'> [-align =3D> =
"left|right|center|justify|fulljustify",]
style=3D'font-size:10.0pt;
font-family:Arial'> [-hang =3D> =
$optional_hanging_indent,]
style=3D'font-size:10.0pt;
font-family:Arial'>);
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>that’s all the sample it gives but I can not =
get it to
work, help please….
------_=_NextPart_001_01C738C9.D586CFF4--
--===============0087732832==
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
--===============0087732832==--