Hi everyone.

I've posted earlier about this problem but haven't gotten any solution yet.
I'm using HTMLDOC application for html > pdf convertion but I can't get
passthru() to work.
I'm using Win98/Apache/PHP 4.1.1/MySQL and everything so far has been
smooth.
I have tested my header() funktion with a simple redirection script and it
works. I've also tested htmldoc.exe from the command line and it works too.
I have also tried with full path for both htmldoc.exe and html page but it's
still a no go :(

Here is an example that should show a pdf file in the browser:

<?
function topdf($filename, $options = "") {
    header("Content-Type: application/pdf");
    flush();
 passthru("htmldoc -t pdf --quiet --jpeg --webpage $options \'$filename\'");
}

$file = "full path to some html page";
$option = "";

topdf($file, $option);
?>

This gives me a blank page in my browser. Looking at the source in this page
it seems that not even the header is being send. I have tried with system()
and exec() too but it makes no difference. I have application/pdf pdf added
in my mime.types file.
If you have an idea about how to get this to work please note that an
example from WinNT or Win2k may not be of any use because I think that the
fact that I'm using Win98 is very important in this case.

Please help if you can.
Thanks....
~ Sviss




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to