Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
PDF → Convert Markdown to PDF
AI-generatedOverview
This node provides a utility to convert Markdown content into a PDF document. It is useful in scenarios where users want to generate styled PDF reports, documentation, or printable content directly from Markdown text within an n8n workflow. For example, you can create a PDF invoice, a formatted report, or export notes written in Markdown as a PDF file.
The node supports adding custom CSS styles to control the appearance of the resulting PDF and offers flexibility in how the output is returned—either as a downloadable URL or as binary data.
Properties
| Name | Meaning |
|---|---|
| Markdown Content | The Markdown text content that will be converted into a PDF document. |
| Custom CSS | Optional CSS styles to customize the look and feel of the rendered Markdown in the PDF. |
| Return as URL | Boolean option to specify whether the PDF should be returned as a downloadable URL (true) or as binary data (false). |
| File Name | The desired name for the output PDF file (used when returning as a URL or saving the file). |
Output
The node outputs a JSON object containing either:
- A URL pointing to the generated PDF file if "Return as URL" is set to
true. - Or binary data representing the PDF file if "Return as URL" is
false.
- A URL pointing to the generated PDF file if "Return as URL" is set to
If binary data is returned, it can be used downstream in the workflow to save the file, send it via email, or upload it to storage.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node sends a POST request to the
/pdf/markdownstringtopdfendpoint of the 0CodeKit API. - No additional environment variables are needed beyond the API key credential configuration.
Troubleshooting
Common issues:
- Invalid or missing Markdown content will cause the conversion to fail.
- Incorrect or malformed CSS might not apply styling correctly but usually won't break the PDF generation.
- Network or authentication errors if the API key is invalid or missing.
Error messages:
- Authentication errors typically indicate problems with the API key; verify the credential setup.
- API response errors may include details about invalid input; ensure Markdown content is properly formatted.
- Timeout or network errors suggest connectivity issues; retry or check network settings.
Links and References
- Markdown Guide
- CSS Styling Basics
- 0CodeKit API Documentation (refer to your API provider's docs for detailed usage)