Show HN: Convert HTML or URL to PDF with RotativaHQ HTTP API(rotativahq.com)
rotativahq.com
Show HN: Convert HTML or URL to PDF with RotativaHQ HTTP API
https://rotativahq.com/site/blog/2016/10/14/use-rotativahq-with-json-http.html
2 comments
I'm the guy that built this. In some hosting environments you are not allowed to run that or graphics libraries are missing... not a lot of alternatives to use external service. Also, consider API key validation can be quick (1 ms avg) and so for latency if the endpoint is not too far. The time to build PDF can be not irrelevant and doing that on a fast CPU and balanced servers can even end up having better times using this SaaS then on your average server. Also, if you are using .Net client you get also protobuf serialization and smart packaging of HTML assets. This makes it even quicker.
Might easier than adding a JSON wrapper and obtaining an API key and incurring network latency in many use cases. SaaS might not be a silver bullet.