10-29-2007, 01:19 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Posts: 126
Thanks: 4
|
PDF Creation - Help!
I am using the following PHP PDF class: http://www.ros.co.nz/pdf/
However, I am having the following problem: I can't have a long paragraph without the text just continueing on the same line off the page.
This is my code:
PHP Code:
$pdf = new Cpdf(); $pdf->selectFont('/fonts/Times-Roman.afm'); $pdf->addText(10,770,15,$title); $pdf->addText(10,740,10,'VEry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text vry lannngge text'); $pdf->addText(10,30,10,'Site Name'); $pdf->stream();
The long text just contines on one line and it should start on a new line when the previous line is full.
Looking forward to help and suggestions!
|
|
|
|