Actions21
- Conversion Actions
- Document Builder Actions
Conversion → Convert to PDF
AI-generatedSummary
Convert a document to PDF through the ONLYOFFICE Document Server. Provide the source as a URL the server can fetch or as binary data from an earlier node, and choose whether to return the PDF file or only its URL.
Inputs
- File Source (required) — Choose URL (default) for a file the Document Server can download, or Binary Input to upload data from an earlier node.
- File URL (required) — Source document URL; used when File Source is URL.
- Input Binary Field (required) — Binary field containing the source document; used when File Source is Binary Input. Defaults to data.
- Input Format Name or ID (required) — Format of the source document, such as DOCX or XLSX. The available list depends on formats convertible to PDF.
- Output Mode — Choose File Data (default) to download the PDF as binary data, or URL Only to return its Document Server URL.
- Output File Name — Base name for the returned PDF file, without the extension; used in File Data mode. Defaults to converted.
- Put Output File in Field — Binary property name for the returned PDF; used in File Data mode. Defaults to data.
Output shape
One output item per input item.
File Data mode returns JSON with success, fileName, inputFormat, outputFormat (pdf), operation, and convertedUrl, plus the PDF in the configured binary field. URL Only returns JSON with success, convertedUrl, inputFormat, outputFormat (pdf), and operation, without downloading the file. Conversion errors fail the operation unless Continue On Fail is enabled, in which case an error field is returned.