diff --git a/tcpdf.php b/tcpdf.php index 23194bd2..057182a8 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -22057,7 +22057,7 @@ public function getNumberOfColumns() { public function setTextRenderingMode($stroke=0, $fill=true, $clip=false) { // Ref.: PDF 32000-1:2008 - 9.3.6 Text Rendering Mode // convert text rendering parameters - if ($stroke < 0) { + if ($stroke < 0 || !is_numeric($stroke)) { $stroke = 0; } if ($fill === true) {