MorphoPDF icon

MorphoPDF

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

Format to PDF → Markdown to PDF

AI-generated

Summary

Convert Markdown content into a PDF document using MorphoPDF with customizable page format and orientation.

Inputs

  • Input Method (required) — Choose how to provide the Markdown content: from binary data (file from a previous node), raw text directly, or fetched from a public URL.
  • Markdown Content — Raw Markdown text to convert; required if Input Method is 'Raw Markdown'.
  • Markdown File URL — URL of the Markdown file to fetch and convert; required if Input Method is 'URL'.
  • Input Binary Property — Name of the binary property containing the Markdown file; used if Input Method is 'Binary Data'.
  • Page Format — Page size of the generated PDF (A4, Letter, or Legal). Defaults to A4.
  • Landscape — Whether to use landscape orientation for the PDF. Defaults to false (portrait).
  • Output Type — How to return the PDF file: as binary data in the output or as a temporary download URL (valid for 1 hour). Defaults to URL.
  • Output Binary Property — Name of the binary property to store the output file when Output Type is Binary Data.

Output shape

a single record

Returns the generated PDF either as binary data under the specified output binary property, or as a JSON object containing a temporary download URL valid for 1 hour; output depends on the chosen Output Type.

Examples

Example 1: Convert raw Markdown text to PDF and receive URL

Set Input Method to 'Raw Markdown', provide Markdown Content, set Output Type to 'URL'. The node outputs a JSON with the download URL.

Example 2: Convert Markdown file from previous node's binary data to PDF as binary output

Set Input Method to 'Binary Data', specify the Input Binary Property name matching the previous node's output (e.g., 'data'), and set Output Type to 'Binary Data' with a chosen Output Binary Property name. The node outputs binary PDF data.

Links

Discussion