enabled pdftotext to check PDF validation

This commit is contained in:
Frank Schubert
2022-05-03 16:02:18 +02:00
parent 56e30e6424
commit b5983b27f1

View File

@@ -121,16 +121,13 @@ class mfUpload {
return false;
}
/*
// false positives if PDF consists of images only
$pdftext = $this->upload->pdftotext();
//$this->log->debug("text: ".$pdftext);
if(strlen($pdftext) < 100) {
$this->log->warn("pdftotext less than 100 bytes (".$this->filename.")");
if($pdftext === false) {
$this->log->warn("pdftotext returned error (".$this->filename.")");
return false;
}
*/
//$this->log->debug("upload text: $pdftext");
return true;