mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-05-08 13:31:24 +00:00
conversion from text to image will use only the first 30000 chars
This commit is contained in:
parent
10198693f0
commit
3d29478cc9
|
|
@ -96,7 +96,8 @@ class SeedDMS_ConversionServiceTextToImage extends SeedDMS_ConversionServiceBase
|
|||
$draw->setFontSize($fontSize);
|
||||
$draw->setTextAlignment(Imagick::ALIGN_LEFT);
|
||||
|
||||
$content = file_get_contents($infile);
|
||||
/* Limit the number of characters to 30000 which is roughly 9 pages */
|
||||
$content = file_get_contents($infile, false, null, 0, 30000);
|
||||
$lines = preg_split('~\R~',$content);
|
||||
$boxY = $boxTop;
|
||||
$pagecount = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user