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.03k stars 779 forks source link

width and height and screen size in api URL #168

Open Shaerif opened 3 years ago

Shaerif commented 3 years ago

I didn't find any documentation or examples about sizes, can it be added ?width=800&height=600&screen=1024&url=$t_url",

to add it like this to specify the size https://url-to-pdf-api.herokuapp.com/api/render?output=screenshot&width=800&height=600&screen=1024&url=http://google.com

penghongyou commented 3 years ago

I didn't find any documentation or examples about sizes, can it be added ?width=800&height=600&screen=1024&url=$t_url",

to add it like this to specify the size https://url-to-pdf-api.herokuapp.com/api/render?output=screenshot&width=800&height=600&screen=1024&url=http://google.com

just like this, http://af7p6j.natappfree.cc/api/render?url=https://google.com&pdf.width=1920px&pdf.height=1920px