Good afternoon
In first excuse me for my poor english, I live in Marseille, France
I use Version : 6.0.093
I have just changed an old lib fpdf by your new library tcpdf
Its works fine
I appreciate WiteHtml
I made a test with an invoice containing several lines (screen captures joints)
I can't resolve a problem with a invoice on 2 pages
The code : I Use TCPDF with a template containing :
I cant give you all the code that draw this document because it take > 1000 lines
But I can give you the mains lines
:::php
// Constants
$MarginL = 10;
$MarginR = 200;
$MarginT = 10;
$BodyMin = 80;
$BodyMax = 20;
class INVOICE extends TCPDF
{
function Header()
{
. . .
$this->SetY($BodyMin + 2);
}
function Body()
{
. . .
$this->SetHeaderMargin($BodyMin);
$this->SetFooterMargin($BodyMax);
$this->SetAutoPageBreak(true, $BodyMax);
$this->SetY($BodyMin + 2);
..
// Here, I design the table in the $Html var
. . .
$this->writeHTML($Html);
}
function Footer()
{
. . .
}
}
Possible cause :
I think when the page break occurs, you draw , in the new page, the beginig of the table in html BEFORE calling Header()
If it is the case, the vertical position is never initialised on the pages 2 and 3
Or I have forgotten a initialization line ?
Thank you for your help
I will really want to use tcpdf
This is not a bug but an implementation issue, please ask help on the forum.