Verify value of PS2PDF and PDF2PS when FIX_BROKEN_PDF is set to yes

This commit is contained in:
Dany De Bontridder 2016-02-03 14:49:03 +01:00
parent 524177d875
commit e6962e06d1

View file

@ -234,11 +234,11 @@ class Document_Export
{
try
{
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 (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é'));
if (PS2PDF == 'NOT') throw new Exception(_('PS2PDF non installé'));
if (PDF2PS == 'NOT') throw new Exception(_('PDF2PS non installé'));
}
} catch (Exception $ex)
{