0

Hi all!
I am PHP beginer, I have some trouble about install, using pdflib for PHP(version 5.1.4, Window XP).
Please help me !
If so be, thanks to all.
Maths

2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by w_3rabi
0

Hi all !
This is a function which I wote.It was wrong, but I can find error, please help me !!!
-----
<?php
function outtext($pdf,$Left_Margin,&$YPos,$font, $str){
global $Page_Height,$Top_Margin, $PageNumber;
if($YPos<10){
$pdf->newPage();
$YPos= $Page_Height-$Top_Margin-10;
$pdf->addText($Left_Margin, $YPos,$font, $str);
$PageNumber++;
return true;
}
else{
$pdf->addText($Left_Margin, $YPos,$font, $str);
return false;
}
}
?>
------------------

Thanks

0

Hi all !
This is a function which I wote.It was wrong ( result is not unique ), but I can find error, please help me !!!
-----
<?php
function outtext($pdf,$Left_Margin,&$YPos,$font, $str){
global $Page_Height,$Top_Margin, $PageNumber;
if($YPos<10){
$pdf->newPage();
$YPos= $Page_Height-$Top_Margin-10;
$pdf->addText($Left_Margin, $YPos,$font, $str);
$PageNumber++;
return true;
}
else{
$pdf->addText($Left_Margin, $YPos,$font, $str);
return false;
}
}
?>
------------------
The function is not true when I print 2 columns.
To print many columns on a PDF page when we end old page and start new page, How do I ?
Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.