MorphoPDF icon

MorphoPDF

Professional PDF processing - merge, split, convert, compress, protect & more

Format to PDF → Word to PDF

AI-generated

Summary

Convert a Word document (DOCX) to PDF by providing the input file either as binary data or as a public URL.

Inputs

  • Input Method (required) — Choose 'Binary Data' to provide the Word file from a previous node or 'URL' to specify a public URL of the Word file.
  • File URL — Public URL of the Word document to convert (used when 'Input Method' is 'URL').
  • Input Binary Property — Name of the binary property containing the Word file (used when 'Input Method' is 'Binary Data').
  • Output Type (required) — Select how to return the output: as binary data in the output or as a temporary download URL valid for 1 hour.
  • Output Binary Property — Name of the binary property to store the output PDF file (only shown when 'Output Type' is 'Binary Data').

Output shape

a single record containing the converted PDF file either as binary data or as a JSON with a temporary download URL

If 'Output Type' is 'Binary Data', the output includes binary data in the specified property. If 'Output Type' is 'URL', the output JSON includes a downloadUrl valid for 1 hour, fileName, and fileSize.

Examples

Example 1: Provide Word document URL and get PDF URL

Input Method: URL; File URL: https://example.com/document.docx; Output Type: URL; Output Binary Property: not shown; Output: JSON with downloadUrl and metadata.

Example 2: Use binary Word data and get PDF binary output

Input Method: Binary Data; Input Binary Property: data; Output Type: Binary Data; Output Binary Property: data; Output: PDF file as binary data in specified property.

Links

Discussion