Skip to content

EspoCRM – Open Source CRM Application

1.5 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://www.espocrm.com/schema/metadata/app/pdfEngines.json",
    "title": "app/pdfEngines",
    "description": "PDF printing engines.",
    "type": "object",
    "additionalProperties": {
        "type": "object",
        "description": "An engine name.",
        "properties": {
            "implementationClassNameMap": {
                "type": "object",
                "description": "Implementations.",
                "properties": {
                    "entity": {
                        "type": "string",
                        "description": "An entity printer. Should implement Espo\\Tools\\Pdf\\EntityPrinter."
                    },
                    "collection": {
                        "type": "string",
                        "description": "An entity printer. Should implement Espo\\Tools\\Pdf\\CollectionPrinter."
                    }
                }
            },
            "fontFaceList": {
                "type": "array",
                "description": "A list of fonts available for the engine.",
                "items": {
                    "anyOf": [
                        {"const": "__APPEND__"},
                        {
                            "type": "string"
                        }
                    ]
                }
            },
            "additionalParams": {
                "type": "object",
                "additionalProperties": true,
                "description": "Additional engine-wise parameters."
            }
        }
    }
}