DEV Community

Prvn-IG
Prvn-IG

Posted on

Needs to convert dynamic html content to pdf

Converting HTML content from Jodit editor to pdf, having issues with alignment, links and styling issues.
We have tried with libraries like

html2pdf,
html2canvas,
jspdf,
react-pdf,
html-pdf-make,
react-html-pdf,
markdown-pdf,
react-to-pdf,

and we got a close result in html2pdf library. But there are attachment link issue in the pdf that's generated.
Used the code to split the dymanic content to PDF for large pages from the link below
https://github.com/eKoopmans/html2pdf.js/issues/311#issuecomment-877571959
Please let us know any suggesstion or approach to solve the issue

Top comments (0)