v1

latestOpenAPI 3.0.42026-07-13161871.7 KB
Pdf

Generate pdf file from html/url using Weasyprint. Requires paid subscription. This is our premium pdf generator. It is the most accurate and feature rich pdf generator we have with support for pdf/a-1b, pdf/a-2b, pdf/a-3b, pdf/a-4b and pdf/ua-1.

post/api/pdf/weasyprint

Headers

X-Api-Versionstring

Request body

urlstring nullable

The url to generate pdf from. Url has precedence over HtmlBase64String value if both are set.

htmlBase64Stringstring nullable

Base64 encoded string with html. If property Url is set, it will be used, not HtmlBase64String.

resourcesobject nullable

This is a set of key-value pairs of digital resources like images that is referenced in the HtmlBase64String document. It uses the filename including relative path as key and the data is provided as a Base64 encoded string.

weasyPrintToPdfArgumentsobject nullable

Command line arguments passed to Weasyprint. Invalid arguments will be ignored. Invalid arguments are "v", "verbose", "version", "d", "debug", "q", "quiet", "h", "help", "u", "f", "format".

Response

Returns the newly created pdf file. Either the file directly or serialized as Json if Accept-header is set to application/json

errorMessagestring nullable

If any error occurs the message will be displayed in here

pdfFileBase64Stringstring nullable

The Base64 encoded string that is the pdf file.