Commit 3a24b895 authored by jcnventura's avatar jcnventura

Use image scale 1 with TCPDF >= 4.6.002

parent fc6dbbc1
......@@ -433,7 +433,9 @@ function theme_print_pdf_tcpdf_page(&$pdf) {
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 15);
// set image scale factor
$pdf->setImageScale(4);
sscanf(PDF_PRODUCER, "TCPDF %d.%d.%d", $major, $minor, $build);
$imagescale = (($major >= 4) && ($minor >= 6) && ($build >= 2)) ? 1 : 4;
$pdf->setImageScale($imagescale);
// set image compression quality
$pdf->setJPEGQuality(100);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment