Reputation: 11
I am a beginner in Symfony2.
I want to convert a PDF file in to HTML keeping the same look and feel
Upvotes: 0
Views: 1176
Reputation: 1226
Well, I tried some libraries, exclusively for Linux, but here is my intermediate conclusion.
PDFtoHTML is too old and doesn't take in consideration all new PDF Specifications, for example PDF 1.7 (mainly because it use xpdf 2.02, while xpdf is already in his 3 version)
Instead of PDFTOHTML I found Poppler that continues the PDFtoHTML development plus some new utils very useful. Actually, in Open Source Poppler was the one who rendered better my complex PDF. Here one almost equal I've to use.
Finally, here is it what I'm gonna use. ImageMagick + Poppler. I will convert my PDF to images and use the XML output from Poppler of PDFtoHTML to add a new layer on my image.
Upvotes: 1