alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.01k stars 774 forks source link

Feature request: Support rendering images #49

Closed eliihen closed 5 years ago

eliihen commented 6 years ago

Hi,

First of all, thanks for this awesome project. It seems to be really well thought-out, so thank you for your efforts. I also really like the ability to render logged in pages by setting a cookie in the POST request.

Since you are using puppeteer, which also supports rendering pages to images via "screenshot", it would be possible to render images as well. Is this something you're interested in? We have some users which would like this, for example for dashboards that are displayed on a monitors.

Echobob commented 6 years ago

See https://github.com/alvarcarto/url-to-pdf-api/pull/43

kimmobrunfeldt commented 5 years ago

You can now use output=screenshot query parameter. See the screenshot parameters in https://github.com/alvarcarto/url-to-pdf-api#get-apirender.