]> _ Git - cubist_pdf.git/commitdiff
wip #6615 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jan 2024 19:05:07 +0000 (20:05 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jan 2024 19:05:07 +0000 (20:05 +0100)
src/PDFTools.php

index ae17888171f9e77d11ac8f08a94dce94fd7cd5e5..740f4be1076d0086a40a74c75b8c341b8f41cc59 100644 (file)
@@ -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)) {