noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/06: Verify value of PS2PDF and PDF2PS when


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/06: Verify value of PS2PDF and PDF2PS when FIX_BROKEN_PDF is set to yes
Date: Fri, 05 Feb 2016 21:32:29 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit efc752f1a53e8f455d48407c82e77c0b0e5f9c69
Author: Dany De Bontridder <address@hidden>
Date:   Tue Feb 2 17:15:16 2016 +0100

    Verify value of PS2PDF and PDF2PS when FIX_BROKEN_PDF is set to yes
---
 include/class/class_document_export.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/class/class_document_export.php 
b/include/class/class_document_export.php
index 50fa059..4e44196 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]