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

Fix: Easy fix to solve pb with pagebreak when adding image

parent 905f7001
Branches
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ function pdf_pagehead(&$pdf,$outputlangs,$page_height) ...@@ -436,7 +436,7 @@ function pdf_pagehead(&$pdf,$outputlangs,$page_height)
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->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, (isset($conf->global->MAIN_USE_BACKGROUND_ON_PDF_X)?$conf->global->MAIN_USE_BACKGROUND_ON_PDF_X:0), (isset($conf->global->MAIN_USE_BACKGROUND_ON_PDF_Y)?$conf->global->MAIN_USE_BACKGROUND_ON_PDF_Y:0), 0, $page_height);
$pdf->SetAutoPageBreak(1,0); // Restore pagebreak $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