0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → Markdown to Pdf

AI-generated

Overview

This node converts a Markdown string into a PDF document. It allows users to input Markdown content and optionally customize the appearance using custom CSS. The output can be obtained as a file or as a URL, depending on the user's preference. This is useful for automating the generation of PDF reports, documentation, or any content originally authored in Markdown format.

Use Case Examples

  1. Generating a PDF report from Markdown content with custom styling.
  2. Converting Markdown documentation into a shareable PDF file or URL.

Properties

Name Meaning
Code Variables Allows setting code variables defined in the code editor for the selected function, useful for dynamic content substitution in the Markdown to PDF conversion.
Get File as URL Boolean flag to determine if the resulting PDF should be returned as a URL instead of a file.
Markdown String The Markdown source content that will be converted into a PDF document.
CSS Custom CSS to style the Markdown content before conversion to PDF.

Output

JSON

  • fileName - The name of the generated PDF file.
  • pdf - The generated PDF content, either as a file buffer or URL depending on the 'Get File as URL' option.

Dependencies

  • An API key credential for the CodeKit API is required to perform the conversion.

Troubleshooting

  • Ensure the Markdown string is valid and properly formatted to avoid conversion errors.
  • If the 'Get File as URL' option is enabled, verify that the URL is accessible and correctly returned by the API.
  • Check that the API key credential is correctly configured and has permissions to use the PDF Markdown conversion endpoint.

Discussion