diff --git a/invoicegr/lib/pdf.lib.php b/invoicegr/lib/pdf.lib.php index 2c7beb6..f1d909f 100644 --- a/invoicegr/lib/pdf.lib.php +++ b/invoicegr/lib/pdf.lib.php @@ -123,7 +123,8 @@ function pdf_getInstancegr($format='',$metric='mm',$pagetype='P') else require_once FPDF_PATH.'fpdf.php'; // We need to instantiate fpdi object (instead of tcpdf) to use merging features. But we can disable it. - if (empty($conf->global->MAIN_DISABLE_FPDI)) require_once FPDI_PATH.'fpdi.php'; + if (empty($conf->global->MAIN_DISABLE_TCPDI)) require_once TCPDI_PATH.'tcpdi.php'; + else if (empty($conf->global->MAIN_DISABLE_FPDI)) require_once FPDI_PATH.'fpdi.php'; //$arrayformat=pdf_getFormat(); //$format=array($arrayformat['width'],$arrayformat['height']);