Skip to content

Commit

Permalink
Fix: Pb with pagebreak when adding image
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 6, 2014
1 parent c45aace commit 905f700
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/lib/pdf.lib.php
Expand Up @@ -435,7 +435,9 @@ function pdf_pagehead(&$pdf,$outputlangs,$page_height)
// Add a background image on document
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->SetAutoPageBreak(1,0); // Restore pagebreak
}
}

Expand Down

0 comments on commit 905f700

Please sign in to comment.