I have asked to my hosting provider to install pdftohtml in my account, but i can get the expected results.
Using the demo1.pdf file from http://pdftohtml.sourceforge.net, it gives a different result.
You can test at my running script in http://asualojaonline.com/PDF/PDF2ALL/pdf2all.php .
pdftohtml need some special configuration?
pdf2html have any list of commands tha can be used?
This is my script:
$outpath = preg_replace(\\\"/\\\\.pdf$/\\\", \\\"\\\", $file).\\\".html\\\";
system(\\\"pdftohtml \\\".escapeshellcmd($file), $ret);
if ($ret == 0)
$value = file_get_contents($outpath);
if ($ret == 127)
print \\\"Could not find pdftohtml tool.\\\";
if ($ret == 1)
print \\\"Could not find pdf file.\\\";
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.