Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tesseract - convert функцията да се вика с tileLimit, ако е пуснато
  • Loading branch information
Yuseinov committed Sep 2, 2022
1 parent 10d48f9 commit 5190ccb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tesseract/Converter.class.php
Expand Up @@ -262,8 +262,15 @@ public static function getText($fileHnd, $params)
}
}
}

exec("convert -background white +matte -density {$density} {$pdfPathEsc} -depth 8 {$tiffPathEsc}");

$exec = "convert -background white +matte -density {$density} {$pdfPathEsc} -depth 8 {$tiffPathEsc}";

$timeLimit = fconv_Script::getTimeLimitScript();
if ($timeLimit) {
$exec = $timeLimit . ' ' . $exec;
}

exec($exec);

$dir = dirname($pdfPath);

Expand Down

0 comments on commit 5190ccb

Please sign in to comment.