Currently trying to evaluate princeXML and I can't seem to get it to print via perl CGI. Here's what I'm trying:
When I request the URL of this script, it never returns and the prince process shoots up to 99.9% CPU and sits there forever. Calling from the command line works fine, however. This is on an AMD64 Ubuntu 7.04 server. Am I missing something very basic here? I've copied this example directly from the documentation.
Thanks in advance.
open(PRINCE, "| prince --debug --log=/tmp/test.log -");
$r->header_out('Content-disposition' => ("attachment; filename=foo.pdf"));
$r->content_type('application/pdf');
$r->send_http_header();
print PRINCE "<html><body><h1>Hello, world!</h1></body></html>";
close PRINCE;
When I request the URL of this script, it never returns and the prince process shoots up to 99.9% CPU and sits there forever. Calling from the command line works fine, however. This is on an AMD64 Ubuntu 7.04 server. Am I missing something very basic here? I've copied this example directly from the documentation.
Thanks in advance.