php exec() function for pdf to html and pdf to text file conversion

by Subramanian 2014-09-16 19:34:35

php exec() function for pdf to html and pdf to text file conversion :

$sourcePath = "formula.pdf";
$destinationPath = "/pdf/formula.html";
$destinationPath1 = "/pdf/formula.txt";

// For convert pdf to html
exec("/usr/bin/pdftohtml $sourcePath $destinationPath");

// For convert pdf to text
exec("/usr/bin/pdftohtml $sourcePath $destinationPath1");

?>

Available other conversions :
pdf2dsc
pdf2ps
pdffonts
pdfimages
pdfinfo
pdfopt
pdftoppm
pdftops
845
like
0
dislike
0
mail
flag

You must LOGIN to add comments