简体   繁体   中英

How to convert PDF generated from reportlab in Python to HTML

I have finished generating a PDF with tables, headers and clickable TOC styled nicely. Now I would like to have an HTML version . Is it possible to use the same ReportLab to just easily generate the HTML file?

Generally, the opposite is a lot easier (HTML -> PDF). ReportLab commercial has an option for this, as does xhtml2pdf . For PDF -> HTML, you can try PDF2Tree .

The direct answer to this question is: No. ReportLab does not have an easy way to do this. At least not according to their documentation .

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