NEW Add option MAIN_PDF_FORCE_FONT_SIZE
This commit is contained in:
parent
33cc0c017c
commit
63a60c7811
@ -240,14 +240,18 @@ function pdf_getPDFFont($outputlangs)
|
||||
*/
|
||||
function pdf_getPDFFontSize($outputlangs)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$size=10; // By default, for FPDI or ISO language on TCPDF
|
||||
if (class_exists('TCPDF')) // If TCPDF on, we can use an UTF8 one like DejaVuSans if required (slower)
|
||||
if (class_exists('TCPDF')) // If TCPDF on, we can use an UTF8 font like DejaVuSans if required (slower)
|
||||
{
|
||||
if ($outputlangs->trans('FONTSIZEFORPDF')!='FONTSIZEFORPDF')
|
||||
if ($outputlangs->trans('FONTSIZEFORPDF') != 'FONTSIZEFORPDF')
|
||||
{
|
||||
$size = (int) $outputlangs->trans('FONTSIZEFORPDF');
|
||||
}
|
||||
}
|
||||
if (! empty($conf->global->MAIN_PDF_FORCE_FONT_SIZE)) $size = $conf->global->MAIN_PDF_FORCE_FONT_SIZE;
|
||||
|
||||
return $size;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user