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

Implement support for render HTML input #27

Closed kimmobrunfeldt closed 7 years ago

kimmobrunfeldt commented 7 years ago

Render any HTML input:

curl -o html.pdf -XPOST -d'{"html": "<body>test</body>"}' -H"content-type: application/json" http://localhost:9000/api/render