Converting HTML to PDF - Frontend

Hi All,

Need help in deciding best tools that are available for converting a HTML to PDF. HTML includes (SVG, Graphs and etc…).

Regards
CSR

if I’m getting the question right, you want to simply convert a web page into a PDF?

in Google Chrome, click the vertical ellipses upper right corner then click Print and save it as PDF, (change other settings too if you want)

for example,

and you’re done,

Thank you for your reply. Actually, we need to build it as a feature in one of our app, we can’t ask user to use the browser options to print.

My problem as of now is in two fold

  1. Tooling from npm package that can convert a said section of UI into PDF which includes SVG, graphs and other elements and etc.
  2. Another problem procuring virtual content i.e. we a div and due to its width there is a overflow. and some section of div is still hidden and can be accessed only after scrolling. I used PDFMake, JSDF to achieve this but, virtual content never gets drafted into PDF.

Regards
CSR

1 Like

how about this?

1 Like

Thank you, I will try this and reply back.

1 Like