FileToPDF icon

FileToPDF

Convert files, HTML and Markdown into polished PDFs

Custom API Call

AI-generated

Summary

Send a GET or POST request to a FileToPDF API endpoint using the configured credentials. The node returns the parsed response envelope and, when it contains a PDF, adds the decoded PDF as binary data in the data field.

Inputs

  • Method — Choose GET or POST; defaults to POST.
  • Endpoint (required) — The API path appended to https://api.filetopdf.dev, such as /account, /html, or /markdown. An absolute URL beginning with http is also used directly.
  • JSON Body — For POST requests, provide the JSON request body. Defaults to {}; invalid JSON causes an item error. This field is not used for GET.

Output shape

One output item per input item, containing the parsed API response envelope in json; if data.pdf is present, also includes PDF binary data in binary.data.

The PDF is base64-decoded and prepared as application/pdf; its filename comes from data.filename or defaults to converted.pdf. Non-2xx responses raise an API error, or produce an { "error": "..." } JSON item when Continue On Fail is enabled.

Links

Discussion