From f87865f039d5b458ecee5dd10c05773a9a01d4e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 2 Nov 2012 14:21:32 +0100 Subject: [PATCH] Fix: crazy pagebreak when warterwark is higher than free space. --- htdocs/core/lib/pdf.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 4ab143067f5..219602f761e 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -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);