I am using Prince XML for the first time and can't seem to get it working. When I try to run it using the php class (using the GUI I have no problems), it gives me the following error.
Warning: proc_open() [function.proc-open]: CreateProcess failed in C:\Web\pdf\prince.php on line 242
Fatal error: Uncaught exception 'Exception' with message 'Failed to execute c:\PrincePDF\Engine\bin\prince.exe --server "c:\web\pdf\test.html" "c:\web\pdf\generated.pdf"' in C:\Web\pdf\prince.php:258 Stack trace: #0 C:\Web\pdf\prince.php(177): Prince->convert_internal1('c:\PrincePDF\En...', Array) #1 C:\Web\pdf\test.php(5): Prince->convert2('c:\web\pdf\tes...', 'c:\web\pdf\gen...') #2 {main} thrown in C:\Web\pdf\prince.php on line 258
The php file used to call it contains the following:
The HTML file is very simple:
I thought this might be a problem with permissions on the directory where prince is located but I have it set so that the internet user account for IIS has full control and I still get this error.
Any help would be appreciated.
Thanks.
Warning: proc_open() [function.proc-open]: CreateProcess failed in C:\Web\pdf\prince.php on line 242
Fatal error: Uncaught exception 'Exception' with message 'Failed to execute c:\PrincePDF\Engine\bin\prince.exe --server "c:\web\pdf\test.html" "c:\web\pdf\generated.pdf"' in C:\Web\pdf\prince.php:258 Stack trace: #0 C:\Web\pdf\prince.php(177): Prince->convert_internal1('c:\PrincePDF\En...', Array) #1 C:\Web\pdf\test.php(5): Prince->convert2('c:\web\pdf\tes...', 'c:\web\pdf\gen...') #2 {main} thrown in C:\Web\pdf\prince.php on line 258
The php file used to call it contains the following:
require_once('prince.php');
$pdf = new Prince('c:\\PrincePDF\\Engine\\bin\\prince.exe');
$pdf->convert2('c:\\web\\pdf\\test.html','c:\\web\\pdf\\generated.pdf');
The HTML file is very simple:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table>
<tr>
<td>Test</td>
<td>
<table>
<tr>
<td></td>
<td>Test 2</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>This is a really long test</td>
</tr>
</table>
</body>
</html>
I thought this might be a problem with permissions on the directory where prince is located but I have it set so that the internet user account for IIS has full control and I still get this error.
Any help would be appreciated.
Thanks.