$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$object,$action);// Note that $action and $object may have been modified by some hooks
$pdf=pdf_getInstance($this->format);
$default_font_size=pdf_getPDFFontSize($outputlangs);// Must be after pdf_getInstance
$heightforinfotot=50;// Height reserved to output the info and total part
$heightforfreetext=(isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5);// Height reserved to output the free text on last page
$heightforfooter=$this->marge_basse+8;// Height reserved to output the footer (value include bottom margin)
$pdf->SetAutoPageBreak(1,0);
if(class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont(pdf_getPDFFont($outputlangs));
// Complete object by loading several other informations
$reshook=$hookmanager->executeHooks('afterPDFCreation',$parameters,$this,$action);// Note that $action and $object may have been modified by some hooks