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

output: :html to return full page (instead of body only) #137

Closed tomasc closed 3 years ago

tomasc commented 4 years ago

Can we have the output: html option return HTML of the whole document (document.documentElement.innerHTML incl. the <head> tag etc.) instead of the current body only (document.body.innerHTML)? It's easy enough to extract the body from the response, if needed. Thank you!

tomasc commented 4 years ago

@kimmobrunfeldt apologies for nagging, but would be great to have this merged! thanks!

tomasc commented 4 years ago

@kimmobrunfeldt any chance to have this merged? Would help a lot! Thank you.

tomasc commented 3 years ago

Hi @kimmobrunfeldt, trying again, would be sweet to have this merged.