I installed Prince on our CentOS 5.5 Linux machine and I tried the following script to test :
But all I get is a grey screen.
The path in the example supplied by Prince is /usr/local/bin/prince but on my machine that path is not present, so I used /usr/bin/prince
<?php
require_once 'prince.php';
$prince = new Prince('/usr/bin/prince');
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename="foo.pdf"');
$htmlString = '<h1 style="color:red">Test</h1>';
$prince->convert_string_to_passthru($htmlString);
?>
But all I get is a grey screen.
The path in the example supplied by Prince is /usr/local/bin/prince but on my machine that path is not present, so I used /usr/bin/prince