How do I convert a PDF file to HTML in PHP? Is there any lib or web service? I mean free, thanks!
You can't.
PDFs are complex documents containing embedded fonts, vector graphics and layout information that cannot be represented in HTML in an automated way. You may be able to extract the TEXT of the document, but that's about it.