Fix: crazy pagebreak when warterwark is higher than free space.

This commit is contained in:
Laurent Destailleur 2012-11-02 14:21:32 +01:00
parent 43f1c80965
commit f87865f039

View File

@ -359,7 +359,7 @@ function pdf_watermark(&$pdf, $outputlangs, $h, $w, $unit, $text)
$watermark_angle=atan($h/$w);
$watermark_x=5;
$watermark_y=$h-25; //Set to $this->page_hauteur-50 or less if problems
$watermark_y=$h-50; // We must be sure to not print into margins
$watermark_width=$h;
$pdf->SetFont('','B',50);
$pdf->SetTextColor(255,192,203);