PejmanNik/puppeteer-report

Use a string variable containing HTML rather than path to file containing HTML in the local file system

Closed this issue · 1 comments

Is it possible to use a string variable containing HTML rather than path to file containing HTML in the local file system? Thanks.

I think it is possible but it is not related to this library. If the puppeteer supports it, you can use the pdfPage method after you load your content to convert it to a PDF.