Getting Started
wkhtmltopdf as a service gives you a REST api to create PDF documents from html without the headache of managing servers and capacity.
This guide will help you implement your html to pdf conversion.
#
AuthenticationYou need an API key to make any conversion requests against our service. If you don't have one, you can get one for free below.
#
Building the request#
AuthorizationThere are a couple ways to authorize your request.
Query parameter (auth
)
Bearer Token
#
BodyThe request body can be any of the following formats:
JSON
WWW Form Encoded
Multipart Form Encoded
#
ResponsesSuccess
When your conversion is successful, the response will have the following format
Failure
Failures will always have a status code >=400
and have an error of the following structure.
429
Failures with http status code 429 are caused by invalid API keys. If you make too many requests with an invalid API key
you'll receive a 429
.
#
Working Sample* you'll need to use your own token in place of wk_*************