Dante PDF icon

Dante PDF

Convert various formats to PDF using Dante PDF converters

Dante PDF

AI-generated

Overview

This node, named Dante PDF, converts various input formats into PDF documents or merges multiple PDF files into one. It supports conversion from Markdown, plain text, HTML, images, and DOCX files to PDF. Additionally, it can merge multiple PDF files from different sources into a single PDF. This node is useful for automating document generation workflows, such as creating reports, invoices, or combining multiple PDFs into one file.

Use Case Examples

  1. Convert Markdown content to a styled PDF report.
  2. Convert plain text logs into a PDF document.
  3. Fetch HTML content from a URL and convert it to PDF for archiving.
  4. Convert images to a PDF photo album with custom layout options like fit and position on the page, and image quality settings.

Properties

Name Meaning
Conversion Type The type of conversion to perform, e.g., Markdown to PDF, Text to PDF, HTML to PDF, Image to PDF, DOCX to PDF, or Merge PDFs.
Input Source The source of the content to convert, either direct text content, binary data from a previous node, or a URL (only for HTML to PDF).
Content The content to convert to PDF, used when input source is direct text content.
Binary Property The name of the binary property containing the data to convert, used when input source is binary data.
URL The URL to fetch content from, used only for HTML to PDF conversion.
Additional Options General PDF output options such as page format, landscape orientation, and output binary property name.
Markdown Options Options specific to Markdown to PDF conversion, including theme, custom CSS, and scale.
Text Options Options specific to Text to PDF conversion, including font size, font family, alignment, line height, and whether to add page numbers.
HTML Options Options specific to HTML to PDF conversion, including print background, display header/footer, scale, and ignore HTTPS errors.
Image Options Options specific to Image to PDF conversion, including how to fit the image, position on the page, images per page, quality, and whether to include metadata.
DOCX Options Options specific to DOCX to PDF conversion, including whether to preserve styles, images, links, and image quality.
PDF Sources Sources of PDFs to merge, supporting binary data or URLs.
Merge Options Options for merging PDFs, including removing blank pages, compressing, removing metadata, and specifying page ranges.

Output

Binary

The node outputs the resulting PDF file as binary data, stored in a configurable binary property (default 'data').

JSON

  • success - Indicates if the operation was successful (only for merge operation).
  • pages - Number of pages in the generated or merged PDF.
  • size - Size of the generated or merged PDF in bytes.
  • processingTime - Time taken to process the PDF conversion or merge.
  • totalInputFiles - Number of input PDF files merged (only for merge operation).
  • mergedFiles - Array of metadata about each merged file, including file names (only for merge operation).
  • conversionType - The type of conversion performed.
  • metadata - Metadata about the generated PDF, such as page count and size.
  • error - Error message if the conversion or merge failed.

Dependencies

  • Requires PDF conversion and merging libraries provided by Dante PDF converters.
  • May require network access for fetching content from URLs (HTML to PDF or merging PDFs from URLs).

Troubleshooting

  • Error if fewer than two PDFs are provided for merging: Ensure at least two PDF files are supplied when using the merge operation.
  • Unsupported input source error: URL input source is only supported for HTML to PDF conversion.
  • Error if no PDF files found in binary data for merging: Verify the binary data contains valid PDF files.
  • Error if no image files found in binary data for image to PDF conversion: Verify the binary data contains valid image files.
  • Conversion failure errors: Check the input content and options for correctness, and ensure the node has necessary permissions and dependencies installed.

Discussion