TG-PDF

Mini-service to generate a PDF given an URL

Renders a URL to PDF

URL

https://tgpdf.test.tweede.golf/render

Or when using as a docker container as part of your cluster deployment:
http://[service_name]/render

Method

GET

URL Params

url=[string]
required
URL that needs te be rendered.

format=[string]
optional
Possible values:

landscape=[boolean]
optional
Possible values:

Success response

Code: 200
Content [pdf_blob]

Error response

Code: 404
Content { "error": "Page not found" }

OR

Code: 401
Content { "error": "Unauthorized" }
Either your are not requesting from a local ip address 127.0.0.1,10.0.0.0/8 or your are not authenticated via Google OAuth.

OR

Code: 500
Content { "error": "[specific internal server error message]" }

API tester