From efc752f1a53e8f455d48407c82e77c0b0e5f9c69 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 2 Feb 2016 17:15:16 +0100 Subject: [PATCH] Verify value of PS2PDF and PDF2PS when FIX_BROKEN_PDF is set to yes --- include/class/class_document_export.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class/class_document_export.php b/include/class/class_document_export.php index 50fa05967..4e441960e 100644 --- a/include/class/class_document_export.php +++ b/include/class/class_document_export.php @@ -236,6 +236,10 @@ class Document_Export { if (CONVERT_GIF_PDF == 'NOT') throw new Exception(_("CONVERT_GIF_PDF n'est pas installé")); if (PDFTK == 'NOT') throw new Exception(_("TKPDF n'est pas installé")); + if ( FIX_BROKEN_PDF == 'YES') { + if (PS2PDF == 'NOT') throw new Exception(_('PS2PDF non installé')); + if (PDF2PS == 'NOT') throw new Exception(_('PDF2PS non installé')); + } } catch (Exception $ex) { throw ($ex);