From b467f9e3c538902eb304fc327d8e99b527f7b4c4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 16 Jan 2024 20:05:07 +0100 Subject: [PATCH] wip #6615 @0.25 --- src/PDFTools.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/PDFTools.php b/src/PDFTools.php index ae17888..740f4be 100644 --- a/src/PDFTools.php +++ b/src/PDFTools.php @@ -393,26 +393,26 @@ class PDFTools $pdftoppm->execute(); $tmp .= '.ppm'; - $output = $pdftoppm->getOutput(); - $errors = ['end of file inside dictionary', - 'leftover args in content stream', - 'document stream is empty', - 'premature end of data segment', - 'corrupt jpeg data', - 'couldn\'t find trailer dictionary', - 'invalid xref entry', - 'incorrect stream length', - 'try to reconstruct', - 'error opening pdf file', - ]; - - foreach ($errors as $error) { - if (stristr($output, $error)) { - unlink($tmp); - $pdftoppm->debug(); - return; - } - } +// $output = $pdftoppm->getOutput(); +// $errors = ['end of file inside dictionary', +// 'leftover args in content stream', +// 'document stream is empty', +// 'premature end of data segment', +// 'corrupt jpeg data', +// 'couldn\'t find trailer dictionary', +// 'invalid xref entry', +// 'incorrect stream length', +// 'try to reconstruct', +// 'error opening pdf file', +// ]; +// +// foreach ($errors as $error) { +// if (stristr($output, $error)) { +// unlink($tmp); +// $pdftoppm->debug(); +// return; +// } +// } if (file_exists($tmp)) { -- 2.39.5