I Have a system. I which I need to edit the PDF in every specific evcent, for that I googled a lot and reached to conclusion that it can be achieved by first converting PDF to HTML, editting the HTML and then again converting the same HTML to PDF file.
Is there any Library available in PHP to convert PDF file to HTML?
And if anyone available with other way to achieve my task, please let me know,
NOTE: PLEASE DO NOT SUGGEST ZEND FRAMEWORK USE.
To read PDF files, you will need to install the XPDF ( http://www.foolabs.com/xpdf/about.html ) package, which includes "pdftotext." Once you have XPDF/pdftotext installed, you run the following PHP statement to get the PDF text:
$content = shell_exec('/usr/local/bin/pdftotext '.$filename.' -'); //dash at the end to output content
then generate html as easy as create html file from data