Protected InternalGenerates a PDF from HTML or Markdown content
The action parameters containing:
Base64 encoded PDF data or FileID if saved to storage
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Private generatePDFProtected getGet boolean parameter value with default
Protected getGet file content from various sources based on parameters Priority: FileID > FileURL > Data parameter
Action parameters
Name of the parameter containing direct data
Name of the parameter containing file ID (default: 'FileID')
Name of the parameter containing file URL (default: 'FileURL')
Object with content and metadata
Protected getGet numeric parameter value with default
Protected getExtract parameter value by name (case-insensitive)
Private parseHTMLToProtected saveSave file to MJ Storage
Action that generates PDF files from HTML or Markdown content Supports various formatting options and can save to MJ Storage
Example