0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

PDF → Convert DOCX to PDF

AI-generated

Overview

This node provides a utility to convert DOCX files into PDF format. It supports inputting the DOCX file either via a public URL or as binary buffer data. Users can choose whether to receive the converted PDF as a downloadable URL or directly as binary data. This functionality is useful in automation workflows where document format conversion is required, such as generating PDFs from Word documents for sharing, archiving, or further processing.

Practical examples:

  • Automatically converting contract drafts stored as DOCX files on a web server into PDFs for distribution.
  • Receiving DOCX files uploaded by users and converting them to PDFs before sending them via email.
  • Archiving DOCX reports as PDFs in a document management system.

Properties

Name Meaning
DOCX URL Public URL of the DOCX file to convert.
DOCX Buffer Binary buffer data of the DOCX file to convert (alternative to URL).
Return as URL Whether to return the resulting PDF as a downloadable URL (true) or as binary data (false).
File Name Desired name for the output PDF file.

Output

The node outputs JSON data containing the result of the conversion. Depending on the "Return as URL" property:

  • If true, the output JSON includes a URL pointing to the downloadable PDF file.
  • If false, the output contains the PDF file data in binary form.

This allows flexible handling of the PDF output depending on downstream workflow needs.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /pdf/docx-to-pdf endpoint of the 0CodeKit API.
  • Network access to the specified DOCX URL (if used) must be available.

Troubleshooting

  • Issue: Conversion fails due to inaccessible DOCX URL.
    Resolution: Ensure the URL is publicly accessible without authentication and correctly points to a valid DOCX file.

  • Issue: No output or empty PDF returned.
    Resolution: Verify that the input DOCX data (URL or buffer) is valid and not corrupted.

  • Issue: Authentication errors.
    Resolution: Confirm that the API key credential is correctly configured and has necessary permissions.

  • Issue: Unexpected response or error from the API.
    Resolution: Check the API status and review any error messages returned. Validate all input parameters are correctly set.

Links and References

Discussion