Render HTML to PDF
Renders an HTML string to a PDF document, returned as a binary application/pdf body.
Unsupported elements (<img>, <svg>, <math>) are rejected. Unavailable CSS fonts and ragged table rows are repaired silently, with no signal to the caller.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
htmlstring · minLength: 1 · requiredHTML source to render. Must be non-blank after trimming —
minLength: 1admits a string of only whitespace, which the renderer rejects with INVALID_INPUT.
optionsobjectRenderer options. Omit the key entirely, or send
null, for the default (LETTER portrait, 40pt margins) —nullis accepted here even though the type below readsobject, and is measured to render successfully.Unknown keys are accepted and silently ignored by the renderer (measured:
{"foo":1}renders 200), and Zuplo does not validate request bodies, so this object is deliberately open.
Responses
Convert content between formats
Converts content from one format to another (e.g., markdown↔HTML, GIF→PDF).
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
sourceFormatstring · requiredInput format (e.g., markdown, html, gif, pdf)
targetFormatstring · requiredOutput format (e.g., html, markdown, pdf, png)
filestring · binaryOptional file input. If omitted, provide
textinstead.textstringOptional text input. If omitted, provide
fileinstead.
Responses
OK
successboolean · requiredmetadataobject · requiredstatusstring · requiredDescriptive status message
dataobject