Skip to content
Snippets Groups Projects
Commit 905f7001 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Pb with pagebreak when adding image

parent c45aace9
No related branches found
No related tags found
No related merge requests found
...@@ -435,7 +435,9 @@ function pdf_pagehead(&$pdf,$outputlangs,$page_height) ...@@ -435,7 +435,9 @@ function pdf_pagehead(&$pdf,$outputlangs,$page_height)
// Add a background image on document // Add a background image on document
if (! empty($conf->global->MAIN_USE_BACKGROUND_ON_PDF)) if (! empty($conf->global->MAIN_USE_BACKGROUND_ON_PDF))
{ {
$pdf->SetAutoPageBreak(0,0); // Disable auto pagebreak before adding image
$pdf->Image($conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_USE_BACKGROUND_ON_PDF, 0, 0, 0, $page_height); $pdf->Image($conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_USE_BACKGROUND_ON_PDF, 0, 0, 0, $page_height);
$pdf->SetAutoPageBreak(1,0); // Restore pagebreak
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment