简体   繁体   中英

How to convert PDF to HTML with exact look and feel in symfony2

I am a beginner in Symfony2.
I want to convert a PDF file in to HTML keeping the same look and feel

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM