0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → Docx to PDF

AI-generated

Overview

This node operation converts DOCX files to PDF format. It is useful in scenarios where users need to transform Word documents into PDFs for easier sharing, printing, or archiving. For example, automating the conversion of contract drafts or reports from DOCX to PDF within a workflow.

Use Case Examples

  1. Convert a DOCX file buffer to a PDF buffer for document management.
  2. Generate a PDF from a DOCX file and optionally get the PDF as a URL for easy access.

Properties

Name Meaning
Code Variables Variables defined in the code editor for the selected function, used to customize the conversion process.
Buffer Buffer of the DOCX file to be converted to PDF.
Get File as URL Boolean flag indicating whether the resulting PDF should be returned as a URL.
Filename Filename to assign to the resulting PDF file.

Output

JSON

  • pdf - The resulting PDF file data, either as a buffer or URL depending on the 'Get File as URL' setting.

Dependencies

  • Requires an API key credential for the CodeKit API to perform the conversion.

Troubleshooting

  • Ensure the input buffer is a valid DOCX file; invalid buffers will cause conversion errors.
  • If 'Get File as URL' is true, ensure the environment supports URL generation and access.
  • Common errors include invalid file format, missing buffer input, or API authentication failures. Verify credentials and input data.

Discussion