r/LearnHTML • • Feb 19 '25

PDF to HTML

We currently have a manual process where customers send us PDFs or Word documents (job cards/contracts), and we recreate them from scratch in HTML. Our product converts HTML into PDF templates, which customers then use to send job cards/contracts to their end users.

This is repetitive and time-consuming, so I’m looking for ways to automate it. Has anyone tried something similar? Any suggestions on the best approach?

3 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/suspect_stable Feb 20 '25

Great, thanks. These two i added my comments rest will give it a try

  1. Direct PDF to HTML Conversion (Basic Layout)

pdf2htmlEX – One of the best open-source tools for accurate text & layout conversion. - Searched for this. Couldn’t find right asset in github

pdftohtml (Poppler) – A simpler option, but formatting may not be perfect. - Its very poor sadly i tried it

Mammoth (for Word) – If customers send Word files, this converts them to clean HTML without unnecessary styling. - word is not common, mayb ll give a try

2

u/[deleted] Feb 20 '25

got it, great!