Hi all,
Does anybody have experiences with installing the PDF Export extension with htmldoc? I am running a brand new MediaWiki 1.6.7 and installed htmldoc version 1.8.24 on Windows XP. When I hit the Print to PDF button in my Wiki, I get the error "ERROR: No HTML files". I have attached the code snippet from the extension script below. I would appreciate any help because I am pretty much lost. Thanks.
Mei
// make a temporary directory with an unique name $mytemp = "C:\TEMP\f".time()."-".rand().".html"; $article_f = fopen($mytemp,'w'); fwrite($article_f, $html); fclose($article_f); putenv("HTMLDOC_NOCGI=1");
# Write the content type to the client... header("Content-Type: application/pdf"); flush();
# Run HTMLDOC to provide the PDF file to the user... passthru("htmldoc -f pdf --quiet --jpeg --webpage '$mytemp'"); #passthru("htmldoc --webpage -f output.pdf '$mytemp'");