Twindle: Creating PDF's from html using Puppeteer

Created on 19 Oct 2020  路  12Comments  路  Source: twindle-co/twindle

We can use puppeteer to render pdf from html, should I create an example ?

Most helpful comment

I explained the code here

All 12 comments

Also It would be easy to create a design, using html & css for pdfs.

I like this idea.

i like puppeteer. go ahead @tolgaerdonmez

All right, lets give it a try :)

Sounds good :smiley:

Just to add my 2 cents, in the past I have used https://www.npmjs.com/package/html5-to-pdf (uses puppeteer in the backend) along with mustache template library to generate pdf reports.

That's also good, we can start with bare puppeteer than switch to that if we're going to use this approach.
I've also used handlebars to setup a main template for the pdf.
Should I also include handlebars or should I keep it simple.

We will need handlebars or something, but if you can just keep a static html version of the same template so that we can show others what is happening and what handebars is doing.

That's a good idea, I'll do that, thanks.

I created the pull request, could you review it pull request

Should we close this now ?

I explained the code here

Awesome 馃敟

@proful

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnjacobkenny picture johnjacobkenny  路  5Comments

vasudeveloper001 picture vasudeveloper001  路  4Comments

proful picture proful  路  4Comments

Akshay2996 picture Akshay2996  路  6Comments

johnjacobkenny picture johnjacobkenny  路  4Comments