diff --git a/extension/qfq/qfq/report/Thumbnail.php b/extension/qfq/qfq/report/Thumbnail.php index 19d8d59e427c093f3c321d20a08a0d9fda8e03df..973f9ab4e9ac55a473b87213f8155322a7b3b9f6 100644 --- a/extension/qfq/qfq/report/Thumbnail.php +++ b/extension/qfq/qfq/report/Thumbnail.php @@ -169,9 +169,11 @@ class Thumbnail { $ext = strtolower(OnString::strrstr($pathFilenameSource, '.')); // SVG files are best to thumbnail via 'inkscape' - if ($ext == 'svg' && $this->inkscape != '') { +// if ( ($ext == 'svg' || $ext == 'pdf') && $this->inkscape != '') { + if (($ext == 'svg') && $this->inkscape != '') { $inkscapeDimension = Token::explodeDimension($dimension); // Automatically cut white border: --export-area-drawing + // --export-text-to-path $cmdInkscape = $this->inkscape . " --without-gui $inkscapeDimension --export-png $pathFilenameThumbnail $pathFilenameSource"; $outputInkscape = Support::qfqExec($cmdInkscape, $rc); if ($rc == 0) {