i want to convert PDF uploaded by user to HTML file and shown on browser.
so for that is there any simple solution in php , jquery or js.
Thanks in advance.
i want to convert PDF uploaded by user to HTML file and shown on browser.
so for that is there any simple solution in php , jquery or js.
Thanks in advance.
the supporting software is available, you can use that one:
1. download and unpack the .exe file to a folder: PDFtoHTML
2. Create a .php file, & put this code (assuming, that pdftohtml.exe
is inside that folder, and the source test.pdf
as well)
<?php
$source_pdf="test.pdf";
$output_folder="MyFolder";
if (!file_exists($output_folder)) { mkdir($output_folder, 0777, true);}
$a= passthru("pdftohtml $source_pdf $output_folder/new_file_name",$b);
var_dump($a);
?>
3. enter MyFolder, and you'll see the converted files