1<html> 2<head> 3<title>html2ps/html2pdf error message</title> 4<style> 5body { 6 color:#000; 7 background-color:#fff; 8 margin:10px; 9 font-family:arial, helvetica, sans-serif; 10 color:#000; 11 font-size:12px; 12 line-height:18px; 13} 14p,td { 15 color:#000; 16 font-size:12px; 17 line-height:18px; 18 margin-top:3px; 19 vertical-align: top; 20} 21h1 { 22 font-family:arial, helvetica, sans-serif; 23 color:#669; 24 font-size:27px; 25 letter-spacing:-1px; 26 margin-top:12px; 27 margin-bottom:12px; 28} 29tr.odd { 30 background-color: #f0f0f0; 31} 32tr.even { 33 background-color: #ffffff; 34} 35td { 36 padding: 3px; 37} 38</style> 39</head> 40<body> 41<h1>Error</h1> 42<p> 43Ghostscript executable not found. You will not be able to generate PDF using 44<b>PDF (Ghostscript, level 1.2)</b> 45or <b>PDF (Ghostscript, level 1.4)</b> options, as these output methods 46require GNU Ghostscript or AFPL Ghoscript to be installed on your server. 47<p> 48<table> 49<tr class="odd"> 50<th width="20%">Problem</th><th>Solution</th> 51</tr> 52<tr class="even"> 53<td>Ghostscript not installed on your server</td> 54<td>Install Ghostscript 7.xx or 8.xx yourself or ask your system administrator. 55Please note that if you're using some kind of package manager, you'll need both 56'ghostscript' and 'ghostscript-fonts' packages for PDF generation (some ghostscript 57distributions do include fonts; some don't). 58</td> 59</tr> 60<tr class="odd"> 61<td>Installed Ghostscript executable have a non-standard name</td> 62<td>Modify <b><a href="help/configuration.html#postscript">GS_PATH</a></b> 63configuration variable to match the real name 64of Ghostscript executable. Say, if you're using 65Windows-based server, you probably have Ghostscript executable named 66<tt>gswin32c.exe</tt> instead of more common <tt>gs</tt>; in this case, 67set the value of <b><a href="help/configuration.html#postscript">GS_PATH</a></b> 68to <tt>'gswin32c.exe'</tt> (NOT <tt>gswin32.exe</tt>!)</td> 69</tr> 70<tr class="even"> 71<td>System search path does not include path to Ghostscript executable.</td> 72<td>Either modify the system search path, or provide <b>full</b> path 73to Ghostscript executable; for example, set the 74<b><a href="help/configuration.html#postscript">GS_PATH</a></b> value 75to <tt>'/usr/local/bin/gs'</tt> (or whatever the real path to Ghostscript 76on your server is). Please note the difference between your user 77profile and user profile PHP is running under! While you may have Ghostscript 78on your default search path, <i>nobody</i> or <i>apache</i> (or whatever the 79name of system account running web server is) may have different search path not 80inluding the ghostscript directory.</td> 81</tr> 82<tr class="odd"> 83<td rowspan="2">You're using PHP in <i>safe mode</i> and Ghostscript is not on 84your <i>safe_mode_exec_dir</i> (please, refer to your PHP documentation 85or <a href="http://www.php.net">www.php.net</a> for explanation of these terms).</td> 86<td>Turn PHP <i>safe mode</i> off yourself or ask your system administrator.<td> 87<tr class="even"> 88<td>Add path to Ghostscript executable to your <i>safe_mode_exec_dir</i> PHP configuration 89variable (or ask your system administrator to do it)</td> 90</tr> 91</tr> 92</table> 93</body> 94</html> 95