Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

chore(pdf-export): cleanup not used styles, add descriptions and titles to schema.json

as-oped19e05352a3
diff --git a/app/models/work_package/pdf_export/schema.json b/app/models/work_package/pdf_export/schema.json
index 7b2f3ac8ace..f1a5c672536 100644
--- a/app/models/work_package/pdf_export/schema.json
+++ b/app/models/work_package/pdf_export/schema.json
@@ -1,359 +1,805 @@
{
- "type" : "object",
- "properties" : {
- "page" : {
- "type" : "object",
- "properties" : {
- "link_color" : {
- "$ref" : "#/$defs/color"
- },
- "page_break_threshold" : {
- "$ref" : "#/$defs/measurement"
- }
- },
- "allOf" : [
- {
- "$ref" : "#/$defs/page"
- }
- ]
+ "type": "object",
+ "title": "PDF Export Styling yml",
+ "description": "This documents describes the styles settings format for the [PDF Export styling file](https://github.com/opf/openproject/blob/dev/app/models/work_package/pdf_export/standard.yml)",
+ "properties": {
+ "page": {
+ "$ref": "#/$defs/page"
},
- "page_logo" : {
- "$ref" : "#/$defs/page_logo"
+ "page_logo": {
+ "$ref": "#/$defs/page_logo"
},
- "page_header" : {
- "$ref" : "#/$defs/page_header_footer"
+ "page_header": {
+ "$ref": "#/$defs/page_header"
},
- "page_footer" : {
- "$ref" : "#/$defs/page_header_footer"
+ "page_footer": {
+ "$ref": "#/$defs/page_footer"
},
- "page_heading" : {
- "$ref" : "#/$defs/font_and_margin"
+ "page_heading": {
+ "$ref": "#/$defs/page_heading"
},
- "work_package" : {
- "type" : "object",
- "properties" : {
- "subject" : {
- "$ref" : "#/$defs/font_and_margin"
- },
- "label" : {
- "$ref" : "#/$defs/font_and_margin"
- },
- "attributes_table" : {
- "type" : "object",
- "properties" : {
- "cell" : {
- "$ref" : "#/$defs/table_cell"
- },
- "cell_label" : {
- "$ref" : "#/$defs/table_cell"
- }
+ "work_package": {
+ "$ref": "#/$defs/work_package"
+ },
+ "toc": {
+ "$ref": "#/$defs/toc"
+ },
+ "overview": {
+ "$ref": "#/$defs/overview"
+ }
+ },
+ "required": [],
+ "additionalProperties": false,
+ "$defs": {
+ "toc": {
+ "title": "Table of content",
+ "description": "Styling for the table of content of the PDF report export",
+ "x-example": {
+ "toc": {
+ "subject_indent": 4,
+ "indent_mode": "stairs",
+ "margin_top": 10,
+ "margin_bottom": 20,
+ "item": {
+ "size": 9,
+ "color": "000000",
+ "margin_bottom": 4
},
- "allOf" : [
- {
- "$ref" : "#/$defs/margin"
- }
- ]
- },
- "section" : {
- "type" : "object",
- "properties" : {
- "heading" : {
- "$ref" : "#/$defs/font_and_margin"
- },
- "item" : {
- "$ref" : "#/$defs/font_and_margin"
- }
+ "item_level_1": {
+ "size": 10,
+ "styles": [
+ "bold"
+ ],
+ "margin_top": 4,
+ "margin_bottom": 4
+ },
+ "item_level_2": {
+ "size": 10
}
- },
- "markdown_label" : {
- "$ref" : "#/$defs/font_and_margin"
- },
- "markdown_margin" : {
- "$ref" : "#/$defs/margin"
- },
- "markdown" : {
- "$ref" : "#/$defs/md_to_pdf_markdown"
}
},
- "patternProperties" : {
- "^subject_level_\\d+" : {
- "$ref" : "#/$defs/font_and_margin"
- }
- },
- "allOf" : [
- {
- "$ref" : "#/$defs/margin"
- }
- ]
- },
- "toc" : {
- "type" : "object",
- "properties" : {
- "subject_indent" : {
- "$ref" : "#/$defs/measurement"
- },
- "indent_mode" : {
- "type" : "string",
- "enum" : [
+ "type": "object",
+ "properties": {
+ "subject_indent": {
+ "title": "Indention width",
+ "description": "Indention width for TOC levels",
+ "$ref": "#/$defs/measurement"
+ },
+ "indent_mode": {
+ "title": "Indention mode",
+ "description": "`flat`= no indention, `stairs` = indent on each level, `third_level` = indent only at 3th level",
+ "type": "string",
+ "enum": [
"flat",
"stairs",
"third_level"
]
},
- "item" : {
- "$ref" : "#/$defs/font_and_margin"
+ "item": {
+ "type": "object",
+ "title": "Table of content item",
+ "description": "Default styling for TOC items on all levels.<br/>use item_level_x` as key for TOC items on level `x`.",
+ "x-example": {
+ "item": {
+ "size": 9,
+ "color": "000000",
+ "margin_bottom": 4
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
}
},
- "patternProperties" : {
- "^item_level_\\d+" : {
- "$ref" : "#/$defs/font_and_margin"
+ "patternProperties": {
+ "^item_level_\\d+": {
+ "title": "Table of content item level",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/margin"
}
]
},
- "overview" : {
- "type" : "object",
- "properties" : {
- "group_heading" : {
- "$ref" : "#/$defs/font_and_margin"
- },
- "table" : {
- "type" : "object",
- "properties" : {
- "subject_indent" : {
- "$ref" : "#/$defs/measurement"
+ "overview": {
+ "title": "Overview",
+ "description": "Styling for the PDF table export",
+ "x-example": {
+ "overview": {
+ "group_heading": {},
+ "table": {}
+ }
+ },
+ "type": "object",
+ "properties": {
+ "group_heading": {
+ "type": "object",
+ "title": "Overview group heading",
+ "description": "Styling for the group lavel if grouping is activated",
+ "x-example": {
+ "group_heading": {
+ "size": 11,
+ "styles": [
+ "bold"
+ ],
+ "margin_bottom": 10
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
},
- "cell" : {
- "$ref" : "#/$defs/table_cell"
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
+ },
+ "table": {
+ "type": "object",
+ "title": "Overview table",
+ "x-example": {
+ "table": {
+ "subject_indent": 0,
+ "margin_bottom": 20,
+ "cell": {
+ "size": 9,
+ "color": "000000",
+ "padding": 5
+ },
+ "cell_header": {
+ "size": 9,
+ "styles": [
+ "bold"
+ ]
+ },
+ "cell_sums": {
+ "size": 8,
+ "styles": [
+ "bold"
+ ]
+ }
+ }
+ },
+ "properties": {
+ "subject_indent": {
+ "title": "Indent subject",
+ "description": "Indent by work package level in the subject cell",
+ "$ref": "#/$defs/measurement"
},
- "cell_header" : {
- "$ref" : "#/$defs/table_cell"
+ "cell": {
+ "title": "Table cell",
+ "description": "Styling for a table value cell",
+ "$ref": "#/$defs/table_cell"
},
- "cell_sums" : {
- "$ref" : "#/$defs/table_cell"
+ "cell_header": {
+ "title": "Table header cell",
+ "description": "Styling for a table header cell",
+ "$ref": "#/$defs/table_cell"
+ },
+ "cell_sums": {
+ "title": "Table sum cell",
+ "description": "Styling for a table sum cell",
+ "$ref": "#/$defs/table_cell"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/margin"
}
]
}
}
- }
- },
- "patternProperties" : {
- "^page_header_\\d+" : {
- "$ref" : "#/$defs/page_header_footer"
- },
- "^page_footer_\\d+" : {
- "$ref" : "#/$defs/page_header_footer"
- },
- "^ordered_list_point_\\d+" : {
- "$ref" : "#/$defs/ordered_list_point"
- },
- "^ordered_list_\\d+" : {
- "$ref" : "#/$defs/ordered_list"
},
- "^unordered_list_point_\\d+" : {
- "$ref" : "#/$defs/unordered_list_point"
- },
- "^unordered_list_\\d+" : {
- "$ref" : "#/$defs/unordered_list"
- },
- "^header_\\d+" : {
- "$ref" : "#/$defs/header"
- }
- },
- "required" : [],
- "additionalProperties" : false,
- "$defs" : {
- "md_to_pdf_markdown" : {
- "type" : "object",
- "properties" : {
- "font" : {
- "$ref" : "#/$defs/font"
- },
- "paragraph" : {
- "$ref" : "#/$defs/paragraph"
- },
- "table" : {
- "$ref" : "#/$defs/table"
- },
- "headless_table" : {
- "$ref" : "#/$defs/headless_table"
- },
- "code" : {
- "$ref" : "#/$defs/code"
- },
- "codeblock" : {
- "$ref" : "#/$defs/codeblock"
- },
- "link" : {
- "$ref" : "#/$defs/link"
- },
- "image" : {
- "$ref" : "#/$defs/image"
- },
- "image_classes" : {
- "$ref" : "#/$defs/image_classes"
- },
- "hrule" : {
- "$ref" : "#/$defs/hrule"
- },
- "footnote_reference" : {
- "$ref" : "#/$defs/footnote_reference"
- },
- "footnote_definition" : {
- "$ref" : "#/$defs/footnote_definition"
- },
- "header" : {
- "$ref" : "#/$defs/header"
- },
- "blockquote" : {
- "$ref" : "#/$defs/blockquote"
- },
- "unordered_list" : {
- "$ref" : "#/$defs/unordered_list"
- },
- "unordered_list_point" : {
- "$ref" : "#/$defs/unordered_list_point"
- },
- "task_list" : {
- "$ref" : "#/$defs/unordered_list"
- },
- "task_list_point" : {
- "$ref" : "#/$defs/task_list_point"
- },
- "ordered_list" : {
- "$ref" : "#/$defs/ordered_list"
- },
- "ordered_list_point" : {
- "$ref" : "#/$defs/ordered_list_point"
+ "work_package": {
+ "type": "object",
+ "title": "Work package",
+ "description": "Styling for the Work package section",
+ "x-example": {
+ "work_package": {
+ "margin_bottom": 20,
+ "subject": {
+ },
+ "subject_level_1": {
+ },
+ "subject_level_2": {
+ },
+ "subject_level_3": {
+ },
+ "attributes_table": {},
+ "markdown_label": {},
+ "markdown_margin": {},
+ "markdown": {}
}
},
- "patternProperties" : {
- "^ordered_list_point_\\d+" : {
- "$ref" : "#/$defs/ordered_list_point"
+ "properties": {
+ "subject": {
+ "type": "object",
+ "title": "Work package subject",
+ "description": "Styling for the Work package subject headline",
+ "x-example": {
+ "subject": {
+ "size": 10,
+ "styles": [
+ "bold"
+ ],
+ "margin_bottom": 10
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "^ordered_list_\\d+" : {
- "$ref" : "#/$defs/ordered_list"
+ "attributes_table": {
+ "type": "object",
+ "title": "Work package attributes",
+ "description": "Styling for the Work package attributes table",
+ "x-example": {
+ "attributes_table": {
+ "margin_bottom": 10,
+ "cell": {
+ "size": 9,
+ "color": "000000",
+ "padding_left": 5,
+ "padding_right": 5,
+ "padding_top": 0,
+ "padding_bottom": 5,
+ "border_color": "4B4B4B",
+ "border_width": 0.25
+ },
+ "cell_label": {
+ "styles": [
+ "bold"
+ ]
+ }
+ }
+ },
+ "properties": {
+ "cell": {
+ "title": "Attribute value table cell",
+ "description": "Styling for a table cell with attribute value",
+ "$ref": "#/$defs/table_cell"
+ },
+ "cell_label": {
+ "title": "Attribute label table cell",
+ "description": "Styling for a table cell with attribute label",
+ "$ref": "#/$defs/table_cell"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "^unordered_list_point_\\d+" : {
- "$ref" : "#/$defs/unordered_list_point"
+ "markdown_label": {
+ "type": "object",
+ "title": "Work package markdown label",
+ "description": "Label headline for work package description and long text custom fields",
+ "x-example": {
+ "markdown_label": {
+ "size": 12,
+ "styles": [
+ "bold"
+ ],
+ "margin_top": 2,
+ "margin_bottom": 4
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "^unordered_list_\\d+" : {
- "$ref" : "#/$defs/unordered_list"
+ "markdown_margin": {
+ "type": "object",
+ "title": "Work package markdown margins",
+ "description": "Margins for work package description and long text custom fields",
+ "x-example": {
+ "markdown_margin": {
+ "margin_bottom": 16
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "^header_\\d+" : {
- "$ref" : "#/$defs/header"
+ "markdown": {
+ "$ref": "#/$defs/markdown"
}
- }
- },
- "font_and_margin" : {
- "type" : "object",
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- },
+ },
+ "patternProperties": {
+ "^subject_level_\\d+": {
+ "type": "object",
+ "title": "Work package subject level",
+ "x-example": {
+ "subject_level_1": {
+ "size": 14,
+ "styles": [
+ "bold"
+ ]
+ },
+ "subject_level_2": {
+ "size": 13,
+ "styles": [
+ "bold"
+ ]
+ },
+ "subject_level_3": {
+ "size": 12,
+ "styles": [
+ "bold"
+ ]
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
+ }
+ },
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/margin"
}
]
},
- "font_specs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/$defs/font_spec"
- }
- },
- "font_spec" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
+ "markdown": {
+ "type": "object",
+ "title": "Markdown Styling",
+ "description": "Styling for content of work package description and long text custom fields",
+ "x-example": {
+ "markdown": {
+ "font": {},
+ "header": {},
+ "header_1": {},
+ "header_2": {},
+ "header_3": {},
+ "paragraph": {},
+ "unordered_list": {},
+ "unordered_list_point": {},
+ "ordered_list": {},
+ "ordered_list_point": {},
+ "task_list": {},
+ "task_list_point": {},
+ "link": {},
+ "code": {},
+ "blockquote": {},
+ "codeblock": {},
+ "table": {}
+ }
+ },
+ "properties": {
+ "font": {
+ "$ref": "#/$defs/font"
+ },
+ "paragraph": {
+ "title": "Markdown paragraph",
+ "description": "A block of text",
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "left",
+ "center",
+ "right",
+ "justify"
+ ]
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/padding"
+ }
+ ],
+ "x-example": {
+ "paragraph": {
+ "align": "justify",
+ "padding_bottom": "2mm"
+ }
+ }
},
- "pathname" : {
- "type" : "string"
+ "table": {
+ "type": "object",
+ "title": "Markdown table",
+ "x-example": {
+ "table": {
+ "auto_width": true,
+ "header": {
+ "background_color": "F0F0F0",
+ "no_repeating": true,
+ "size": 12
+ },
+ "cell": {
+ "background_color": "000FFF",
+ "size": 10
+ }
+ }
+ },
+ "properties": {
+ "auto_width": {
+ "title": "Automatic column widths",
+ "description": "Table columns should fit the content, equal spacing of columns if value is `false`",
+ "type": "boolean"
+ },
+ "header": {
+ "$ref": "#/$defs/table_header"
+ },
+ "cell": {
+ "$ref": "#/$defs/table_cell"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ },
+ {
+ "$ref": "#/$defs/border"
+ }
+ ]
},
- "regular" : {
- "type" : "string"
+ "headless_table": {
+ "type": "object",
+ "title": "Markdown headless table",
+ "description": "Tables without or empty header rows can be styled differently.",
+ "x-example": {
+ "headless_table": {
+ "auto_width": true,
+ "cell": {
+ "style": "underline",
+ "background_color": "000FFF"
+ }
+ }
+ },
+ "properties": {
+ "auto_width": {
+ "title": "Automatic column widths",
+ "description": "Table columns should fit the content, equal spacing of columns if value is `false`",
+ "type": "boolean"
+ },
+ "cell": {
+ "$ref": "#/$defs/table_cell"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ },
+ {
+ "$ref": "#/$defs/border"
+ }
+ ]
},
- "bold" : {
- "type" : "string"
+ "code": {
+ "type": "object",
+ "title": "Markdown code",
+ "description": "Styling to denote a word or phrase as code",
+ "x-example": {
+ "code": {
+ "font": "Consolas",
+ "color": "880000"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ }
+ ]
},
- "italic" : {
- "type" : "string"
+ "codeblock": {
+ "type": "object",
+ "title": "Markdown code block",
+ "description": "Styling to denote a paragraph as code",
+ "x-example": {
+ "codeblock": {
+ "background_color": "F5F5F5",
+ "font": "Consolas",
+ "size": 8,
+ "color": "880000",
+ "padding": "3mm",
+ "margin_top": "2mm",
+ "margin_bottom": "2mm"
+ }
+ },
+ "properties": {
+ "background_color": {
+ "$ref": "#/$defs/color"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/padding"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "bold_italic" : {
- "type" : "string"
- }
- },
- "required" : [
- "name",
- "pathname",
- "regular",
- "bold",
- "italic",
- "bold_italic"
- ]
- },
- "fallback_font_spec" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
+ "link": {
+ "type": "object",
+ "title": "Markdown Link",
+ "description": "Styling a clickable link",
+ "x-example": {
+ "link": {
+ "color": "000088"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ }
+ ]
+ },
+ "image": {
+ "type": "object",
+ "title": "Markdown image",
+ "description": "Styling of images",
+ "x-example": {
+ "image": {
+ "max_width": "50mm",
+ "margin": "2mm",
+ "margin_bottom": "3mm",
+ "align": "center",
+ "caption": {
+ "align": "center",
+ "size": 8
+ }
+ }
+ },
+ "properties": {
+ "max_width": {
+ "$ref": "#/$defs/measurement",
+ "title": "Maximum width of the image"
+ },
+ "align": {
+ "$ref": "#/$defs/alignment"
+ },
+ "caption": {
+ "title": "Image caption",
+ "description": "Styling for the caption below an image",
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "left",
+ "center",
+ "right",
+ "justify"
+ ]
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/padding"
+ }
+ ]
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
+ },
+ "hrule": {
+ "type": "object",
+ "title": "Markdown horizontal rule",
+ "description": "Styling for horizontal lines",
+ "properties": {
+ "line_width": {
+ "title": "Sets the stroke width of the horizontal rule",
+ "$ref": "#/$defs/measurement"
+ }
+ },
+ "x-example": {
+ "hrule": {
+ "line_width": 1
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
+ },
+ "header": {
+ "title": "Markdown header",
+ "description": "Default styling for headers on all levels.<br/>use header_`x` as key for header level `x`.",
+ "$ref": "#/$defs/header"
+ },
+ "blockquote": {
+ "type": "object",
+ "title": "Markdown blockquote",
+ "description": "Styling to denote a paragraph as quote",
+ "x-example": {
+ "blockquote": {
+ "background_color": "f4f9ff",
+ "size": 14,
+ "styles": [
+ "italic"
+ ],
+ "color": "0f3b66",
+ "border_color": "b8d6f4",
+ "border_width": 1,
+ "no_border_right": true,
+ "no_border_left": false,
+ "no_border_bottom": true,
+ "no_border_top": true
+ }
+ },
+ "properties": {
+ "background_color": {
+ "$ref": "#/$defs/color"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
+ {
+ "$ref": "#/$defs/border"
+ },
+ {
+ "$ref": "#/$defs/padding"
+ },
+ {
+ "$ref": "#/$defs/margin"
+ }
+ ]
},
- "pathname" : {
- "type" : "string"
+ "ordered_list": {
+ "title": "Markdown ordered list",
+ "description": "Default styling for ordered lists on all levels.<br/>use ordered_list_`x` as key for ordered list level `x`.",
+ "$ref": "#/$defs/ordered_list"
+ },
+ "ordered_list_point": {
+ "title": "Markdown ordered list point",
+ "description": "Default styling for ordered list points on all levels.<br/>use ordered_list_point_`x` as key for ordered list points level `x`.",
+ "$ref": "#/$defs/ordered_list_point"
+ },
+ "unordered_list": {
+ "title": "Markdown unordered list",
+ "description": "Default styling for unordered lists on all levels.<br/>use unordered_list_`x` as key for unordered list level `x`.",
+ "$ref": "#/$defs/unordered_list"
+ },
+ "unordered_list_point": {
+ "title": "Markdown unordered list point",
+ "description": "Default styling for unordered list points on all levels.<br/>use unordered_list_point_`x` as key for unordered list points level `x`.",
+ "$ref": "#/$defs/unordered_list_point"
+ },
+ "task_list": {
+ "title": "Markdown task list",
+ "x-example": {
+ "task_list": {
+ "spacing": "2mm"
+ }
+ },
+ "$ref": "#/$defs/unordered_list"
},
- "filename" : {
- "type" : "string"
+ "task_list_point": {
+ "title": "Markdown task list point",
+ "$ref": "#/$defs/task_list_point"
}
},
- "required" : [
- "name",
- "pathname",
- "filename"
- ]
+ "patternProperties": {
+ "^ordered_list_point_\\d+": {
+ "title": "Markdown ordered list point level",
+ "$ref": "#/$defs/ordered_list_point"
+ },
+ "^ordered_list_\\d+": {
+ "title": "Markdown ordered list level",
+ "$ref": "#/$defs/ordered_list"
+ },
+ "^unordered_list_point_\\d+": {
+ "title": "Markdown unordered list point level",
+ "$ref": "#/$defs/unordered_list_point"
+ },
+ "^unordered_list_\\d+": {
+ "title": "Markdown unordered List Level",
+ "$ref": "#/$defs/unordered_list"
+ },
+ "^header_\\d+": {
+ "title": "Markdown header level",
+ "$ref": "#/$defs/header"
+ }
+ }
},
- "color" : {
- "type" : "string",
- "pattern" : "^(?:[0-9a-fA-F]{3}){1,2}$"
+ "color": {
+ "type": "string",
+ "title": "Color",
+ "description": "A color in RRGGBB format",
+ "examples": [
+ "F0F0F0"
+ ],
+ "x-example": {
+ "color": "F0F0F0"
+ },
+ "pattern": "^(?:[0-9a-fA-F]{3}){1,2}$"
},
- "font" : {
- "type" : "object",
- "properties" : {
- "font" : {
- "type" : "string"
+ "font": {
+ "title": "Font properties",
+ "description": "Properties to set the font style",
+ "type": "object",
+ "x-example": {
+ "font": "OpenSans",
+ "size": 10,
+ "character_spacing": 0,
+ "styles": [],
+ "color": "000000",
+ "leading": 2
+ },
+ "properties": {
+ "font": {
+ "type": "string"
},
- "size" : {
- "$ref" : "#/$defs/measurement"
+ "size": {
+ "$ref": "#/$defs/measurement"
},
- "character_spacing" : {
- "$ref" : "#/$defs/measurement"
+ "character_spacing": {
+ "$ref": "#/$defs/measurement"
},
- "leading" : {
- "$ref" : "#/$defs/measurement"
+ "leading": {
+ "$ref": "#/$defs/measurement"
},
- "color" : {
- "$ref" : "#/$defs/color"
+ "color": {
+ "$ref": "#/$defs/color"
},
- "styles" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/$defs/font_style"
+ "styles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/font_style"
}
}
}
},
- "font_style" : {
- "type" : "string",
- "enum" : [
+ "font_style": {
+ "type": "string",
+ "title": "Font Style",
+ "description": "Style of the font to use",
+ "examples": [
+ "bold"
+ ],
+ "enum": [
"bold",
"italic",
"underline",
@@ -362,19 +808,47 @@
"subscript"
]
},
- "page" : {
- "type" : "object",
- "properties" : {
- "page_layout" : {
- "type" : "string",
- "enum" : [
+ "page": {
+ "title": "Page settings",
+ "description": "Properties to set the basic page settings",
+ "type": "object",
+ "x-example": {
+ "page": {
+ "page_size": "EXECUTIVE",
+ "margin_top": 60,
+ "margin_bottom": 60,
+ "margin_left": 36,
+ "margin_right": 36,
+ "page_break_threshold": 200,
+ "link_color": "175A8E"
+ }
+ },
+ "properties": {
+ "link_color": {
+ "title": "Link color",
+ "description": "Set the color of clickable links",
+ "$ref": "#/$defs/color"
+ },
+ "page_layout": {
+ "title": "Page layout",
+ "description": "The layout of a page",
+ "type": "string",
+ "examples": [
+ "portrait"
+ ],
+ "enum": [
"portrait",
"landscape"
]
},
- "page_size" : {
- "type" : "string",
- "enum" : [
+ "page_size": {
+ "type": "string",
+ "title": "Page size",
+ "description": "The size of a page",
+ "examples": [
+ "EXECUTIVE"
+ ],
+ "enum": [
"EXECUTIVE",
"TABLOID",
"LETTER",
@@ -426,398 +900,481 @@
"4A0",
"2A0"
]
+ },
+ "page_break_threshold": {
+ "title": "Page break threshold",
+ "description": "If there is a new section, start a new page if space less than the threshold is available",
+ "$ref": "#/$defs/measurement"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "title": "Default font settings",
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/margin"
+ "title": "Page margins",
+ "$ref": "#/$defs/margin"
}
]
},
- "page_header_footer" : {
- "type" : "object",
- "properties" : {
- "filter_pages" : {
- "$ref" : "#/$defs/pages_filter"
- },
- "align" : {
- "$ref" : "#/$defs/alignment"
- },
- "offset" : {
- "$ref" : "#/$defs/measurement_signed"
+ "page_heading": {
+ "title": "Page heading",
+ "description": "The main page title heading",
+ "x-example": {
+ "page_heading": {
+ "size": 14,
+ "styles": [
+ "bold"
+ ],
+ "margin_bottom": 10
}
},
- "allOf" : [
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ },
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/margin"
}
]
},
- "pages_filter" : {
- "type" : "array",
- "items" : {
- "type" : "integer"
- }
- },
- "page_logo" : {
- "type" : "object",
- "properties" : {
- "filter_pages" : {
- "$ref" : "#/$defs/pages_filter"
- },
- "align" : {
- "$ref" : "#/$defs/alignment"
- },
- "height" : {
- "$ref" : "#/$defs/measurement"
- },
- "max_width" : {
- "$ref" : "#/$defs/measurement"
- },
- "offset" : {
- "$ref" : "#/$defs/measurement_signed"
- },
- "disabled" : {
- "type" : "boolean"
+ "page_footer": {
+ "type": "object",
+ "title": "Page footers",
+ "x-example": {
+ "page_footer": {
+ "offset": -30,
+ "size": 8
}
- }
+ },
+ "properties": {
+ "offset": {
+ "title": "Offset position from page bottom",
+ "examples": [
+ -30
+ ],
+ "$ref": "#/$defs/measurement_signed"
+ },
+ "spacing": {
+ "title": "Minimum spacing between different page footers",
+ "examples": [
+ 8
+ ],
+ "$ref": "#/$defs/measurement"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/$defs/font"
+ }
+ ]
},
- "hrule" : {
- "type" : "object",
- "properties" : {
- "line_width" : {
- "$ref" : "#/$defs/measurement"
+ "page_header": {
+ "type": "object",
+ "title": "Page headers",
+ "x-example": {
+ "page_header": {
+ "align": "left",
+ "offset": 20,
+ "size": 8
}
},
- "allOf" : [
+ "properties": {
+ "align": {
+ "$ref": "#/$defs/alignment"
+ },
+ "offset": {
+ "title": "Offset position from page top",
+ "examples": [
+ -30
+ ],
+ "$ref": "#/$defs/measurement_signed"
+ }
+ },
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/font"
}
]
},
- "margin" : {
- "type" : "object",
- "properties" : {
- "margin" : {
- "$ref" : "#/$defs/measurement"
- },
- "margin_left" : {
- "$ref" : "#/$defs/measurement"
- },
- "margin_right" : {
- "$ref" : "#/$defs/measurement"
- },
- "margin_top" : {
- "$ref" : "#/$defs/measurement"
- },
- "margin_bottom" : {
- "$ref" : "#/$defs/measurement"
+ "page_logo": {
+ "title": "Page logo",
+ "description": "Styling for logo image in the page header.",
+ "type": "object",
+ "x-example": {
+ "page_logo": {
+ "height": 20,
+ "align": "right"
+ }
+ },
+ "properties": {
+ "height": {
+ "$ref": "#/$defs/measurement",
+ "title": "Height of the image"
+ },
+ "align": {
+ "$ref": "#/$defs/alignment"
+ },
+ "offset": {
+ "title": "Offset position from page top",
+ "examples": [
+ -30
+ ],
+ "$ref": "#/$defs/measurement_signed"
}
}
},
- "padding" : {
- "type" : "object",
- "properties" : {
- "padding" : {
- "$ref" : "#/$defs/measurement"
- },
- "padding_left" : {
- "$ref" : "#/$defs/measurement"
- },
- "padding_right" : {
- "$ref" : "#/$defs/measurement"
- },
- "padding_top" : {
- "$ref" : "#/$defs/measurement"
- },
- "padding_bottom" : {
- "$ref" : "#/$defs/measurement"
+ "margin": {
+ "title": "Margin properties",
+ "description": "Properties to set margins",
+ "type": "object",
+ "x-example": {
+ "margin": "10mm",
+ "margin_top": "15mm"
+ },
+ "properties": {
+ "margin": {
+ "title": "Margin",
+ "description": "One value for margin on all sides",
+ "$ref": "#/$defs/measurement"
+ },
+ "margin_left": {
+ "title": "Margin left",
+ "description": "Margin only on the left side",
+ "$ref": "#/$defs/measurement"
+ },
+ "margin_right": {
+ "title": "Margin right",
+ "description": "Margin only on the right side",
+ "$ref": "#/$defs/measurement"
+ },
+ "margin_top": {
+ "title": "Margin top",
+ "description": "Margin only on the top side",
+ "$ref": "#/$defs/measurement"
+ },
+ "margin_bottom": {
+ "title": "Margin bottom",
+ "description": "Margin only on the bottom side",
+ "$ref": "#/$defs/measurement"
+ }
+ }
+ },
+ "padding": {
+ "title": "Padding Properties",
+ "description": "Properties to set paddings",
+ "type": "object",
+ "x-example": {
+ "padding": "10mm",
+ "padding_top": "15mm"
+ },
+ "properties": {
+ "padding": {
+ "title": "Padding",
+ "description": "One value for padding on all sides",
+ "$ref": "#/$defs/measurement"
+ },
+ "padding_left": {
+ "title": "Padding left",
+ "description": "Padding only on the left side",
+ "$ref": "#/$defs/measurement"
+ },
+ "padding_right": {
+ "title": "Padding right",
+ "description": "Padding only on the right side",
+ "$ref": "#/$defs/measurement"
+ },
+ "padding_top": {
+ "title": "Padding top",
+ "description": "Padding only on the top side",
+ "$ref": "#/$defs/measurement"
+ },
+ "padding_bottom": {
+ "title": "Padding bottom",
+ "description": "Padding only on the bottom side",
+ "$ref": "#/$defs/measurement"
}
}
},
- "measurement" : {
- "type" : [
+ "measurement": {
+ "type": [
"number",
"string"
],
- "pattern" : "^([0-9\\.]+)(mm|cm|dm|m|in|ft|yr|pt)$"
+ "pattern": "^([0-9\\.]+)(mm|cm|dm|m|in|ft|yr|pt)$",
+ "description": "A number >= 0 and an optional unit",
+ "examples": [
+ "10mm",
+ "10"
+ ]
},
- "measurement_signed" : {
- "type" : [
+ "measurement_signed": {
+ "type": [
"number",
"string"
],
- "pattern" : "^-?([0-9\\.]+)(mm|cm|dm|m|in|ft|yr|pt)$"
+ "pattern": "^-?([0-9\\.]+)(mm|cm|dm|m|in|ft|yr|pt)$",
+ "description": "A positive or negative number and an optional unit"
},
- "alignment" : {
- "type" : "string",
- "enum" : [
+ "alignment": {
+ "title": "Alignment",
+ "description": "How the element should be aligned",
+ "examples": [
+ "center"
+ ],
+ "type": "string",
+ "enum": [
"left",
"center",
"right"
]
},
- "unordered_list" : {
- "type" : "object",
- "properties" : {
- "spacing" : {
- "$ref" : "#/$defs/measurement"
+ "unordered_list": {
+ "title": "Markdown unordered list",
+ "x-example": {
+ "unordered_list": {
+ "spacing": "1.5mm",
+ "padding_top": "2mm",
+ "padding_bottom": "2mm"
+ }
+ },
+ "type": "object",
+ "properties": {
+ "spacing": {
+ "title": "Spacing",
+ "description": "Additional space between list items",
+ "$ref": "#/$defs/measurement"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/padding"
+ "$ref": "#/$defs/padding"
}
]
},
- "unordered_list_point" : {
- "type" : "object",
- "properties" : {
- "sign" : {
- "type" : "string"
- },
- "spacing" : {
- "$ref" : "#/$defs/measurement"
+ "unordered_list_point": {
+ "title": "Markdown unordered list point",
+ "x-example": {
+ "unordered_list_point": {
+ "sign": "•",
+ "spacing": "0.75mm"
}
},
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- }
- ]
- },
- "task_list_point" : {
- "type" : "object",
- "properties" : {
- "checked" : {
- "type" : "string"
- },
- "unchecked" : {
- "type" : "string"
- },
- "spacing" : {
- "$ref" : "#/$defs/measurement"
+ "type": "object",
+ "properties": {
+ "sign": {
+ "title": "Sign",
+ "description": "The 'bullet point' character used in the list",
+ "type": "string"
+ },
+ "spacing": {
+ "title": "Spacing",
+ "description": "Space between point and list item content",
+ "$ref": "#/$defs/measurement"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
}
]
},
- "ordered_list" : {
- "type" : "object",
- "properties" : {
- "spacing" : {
- "$ref" : "#/$defs/measurement"
- },
- "point_inline" : {
- "type" : "boolean"
+ "task_list_point": {
+ "type": "object",
+ "title": "Markdown task list point",
+ "x-example": {
+ "task_list_point": {
+ "checked": "☑",
+ "unchecked": "☐",
+ "spacing": "0.75mm"
}
},
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- },
- {
- "$ref" : "#/$defs/padding"
- }
- ]
- },
- "ordered_list_point" : {
- "type" : "object",
- "properties" : {
- "spacing" : {
- "$ref" : "#/$defs/measurement"
- },
- "alphabetical" : {
- "type" : "boolean"
- },
- "spanning" : {
- "type" : "boolean"
- },
- "template" : {
- "type" : "string"
+ "properties": {
+ "checked": {
+ "title": "Checked sign",
+ "description": "Sign for checked state of a task list item",
+ "type": "string"
+ },
+ "unchecked": {
+ "title": "Unchecked sign",
+ "description": "Sign for unchecked state of a task list item",
+ "type": "string"
+ },
+ "spacing": {
+ "title": "Spacing",
+ "description": "Additional space between point and list item content",
+ "$ref": "#/$defs/measurement"
}
},
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- }
- ]
- },
- "footnote_reference" : {
- "type" : "object",
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
}
]
},
- "footnote_definition" : {
- "type" : "object",
- "properties" : {
- "point" : {
- "type" : "object",
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- }
- ]
- }
- }
- },
- "link" : {
- "type" : "object",
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
+ "ordered_list": {
+ "title": "Markdown ordered list",
+ "x-example": {
+ "ordered_list": {
+ "spacing": "2mm",
+ "point_inline": false
}
- ]
- },
- "code" : {
- "type" : "object",
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
+ },
+ "type": "object",
+ "properties": {
+ "spacing": {
+ "title": "Spacing",
+ "description": "Additional space between list items",
+ "$ref": "#/$defs/measurement"
+ },
+ "point_inline": {
+ "title": "Inline Point",
+ "description": "Do not indent paragraph text, but include the point into the first paragraph",
+ "type": "boolean"
}
- ]
- },
- "header" : {
- "type" : "object",
- "allOf" : [
+ },
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/padding"
+ "$ref": "#/$defs/padding"
}
]
},
- "blockquote" : {
- "type" : "object",
- "properties" : {
- "background_color" : {
- "$ref" : "#/$defs/color"
+ "ordered_list_point": {
+ "title": "Markdown ordered list point",
+ "type": "object",
+ "x-example": {
+ "ordered_list_point": {
+ "template": "<number>.",
+ "alphabetical": false,
+ "spacing": "0.75mm",
+ "spanning": true
}
},
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
- },
- {
- "$ref" : "#/$defs/border"
- },
- {
- "$ref" : "#/$defs/padding"
- },
- {
- "$ref" : "#/$defs/margin"
- }
- ]
- },
- "codeblock" : {
- "type" : "object",
- "properties" : {
- "background_color" : {
- "$ref" : "#/$defs/color"
+ "properties": {
+ "spacing": {
+ "$ref": "#/$defs/measurement"
+ },
+ "alphabetical": {
+ "title": "Alphabetical bullet points",
+ "description": "Convert the list item number into a character, eg. `a.` `b.` `c.`",
+ "type": "boolean"
+ },
+ "spanning": {
+ "title": "Spanning",
+ "description": "Use the width of the largest bullet as indention.",
+ "type": "boolean"
+ },
+ "template": {
+ "title": "Template",
+ "description": "customize what the prefix should contain, eg. `(<number>)`",
+ "type": "string"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
- },
- {
- "$ref" : "#/$defs/padding"
- },
- {
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/font"
}
]
},
- "table" : {
- "type" : "object",
- "properties" : {
- "auto_width" : {
- "type" : "boolean"
- },
- "header" : {
- "$ref" : "#/$defs/table_header"
+ "header": {
+ "type": "object",
+ "title": "Markdown header",
+ "x-example": {
+ "header": {
+ "styles": [
+ "bold"
+ ],
+ "padding_top": "2mm",
+ "padding_bottom": "2mm"
+ },
+ "header_1": {
+ "size": 14,
+ "styles": [
+ "bold",
+ "italic"
+ ]
},
- "cell" : {
- "$ref" : "#/$defs/table_cell"
+ "header_2": {
+ "size": 12,
+ "styles": [
+ "bold"
+ ]
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/border"
+ "$ref": "#/$defs/padding"
}
]
},
- "headless_table" : {
- "type" : "object",
- "properties" : {
- "auto_width" : {
- "type" : "boolean"
- },
- "cell" : {
- "$ref" : "#/$defs/table_cell"
+ "table_cell": {
+ "type": "object",
+ "title": "Table cell",
+ "description": "Styling for a table cell",
+ "x-example": {
+ "table_cell": {
+ "size": 9,
+ "color": "000000",
+ "padding": 5,
+ "border_width": 1
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/margin"
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/border"
- }
- ]
- },
- "table_cell" : {
- "type" : "object",
- "allOf" : [
- {
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/padding"
},
{
- "$ref" : "#/$defs/padding"
- },
- {
- "$ref" : "#/$defs/border"
+ "$ref": "#/$defs/border"
}
]
},
- "table_header" : {
- "type" : "object",
- "properties" : {
- "background_color" : {
- "$ref" : "#/$defs/color"
+ "table_header": {
+ "type": "object",
+ "title": "Table header cell",
+ "description": "Styling for a table header cell",
+ "x-example": {
+ "table_header": {
+ "size": 9,
+ "styles": [
+ "bold"
+ ]
+ }
+ },
+ "properties": {
+ "background_color": {
+ "$ref": "#/$defs/color"
},
- "no_repeating" : {
- "type" : "boolean"
+ "no_repeating": {
+ "type": "boolean"
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
}
]
},
- "paragraph" : {
- "type" : "object",
- "properties" : {
- "align" : {
- "type" : "string",
- "enum" : [
+ "paragraph": {
+ "type": "object",
+ "title": "Markdown paragraph",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
"left",
"center",
"right",
@@ -825,137 +1382,104 @@
]
}
},
- "allOf" : [
+ "allOf": [
{
- "$ref" : "#/$defs/font"
+ "$ref": "#/$defs/font"
},
{
- "$ref" : "#/$defs/padding"
+ "$ref": "#/$defs/padding"
}
]
},
- "image" : {
- "type" : "object",
- "properties" : {
- "max_width" : {
- "$ref" : "#/$defs/measurement"
- },
- "align" : {
- "$ref" : "#/$defs/alignment"
- },
- "caption" : {
- "$ref" : "#/$defs/paragraph"
- }
+ "border": {
+ "type": "object",
+ "title": "Border Properties",
+ "description": "Properties to set borders",
+ "x-example": {
+ "border_color": "F000FF",
+ "border_color_top": "000FFF",
+ "border_color_bottom": "FFF000",
+ "no_border_left": true,
+ "no_border_right": true,
+ "border_width": "0.25mm",
+ "border_width_left": "0.5mm",
+ "border_width_right": "0.5mm"
},
- "allOf" : [
- {
- "$ref" : "#/$defs/margin"
- }
- ]
- },
- "border" : {
- "type" : "object",
- "properties" : {
- "border_width" : {
- "$ref" : "#/$defs/measurement"
- },
- "border_width_left" : {
- "$ref" : "#/$defs/measurement"
- },
- "border_width_top" : {
- "$ref" : "#/$defs/measurement"
- },
- "border_width_right" : {
- "$ref" : "#/$defs/measurement"
- },
- "border_width_bottom" : {
- "$ref" : "#/$defs/measurement"
- },
- "border_color" : {
- "$ref" : "#/$defs/color"
- },
- "border_color_left" : {
- "$ref" : "#/$defs/color"
- },
- "border_color_top" : {
- "$ref" : "#/$defs/color"
- },
- "border_color_right" : {
- "$ref" : "#/$defs/color"
- },
- "border_color_bottom" : {
- "$ref" : "#/$defs/color"
- },
- "no_border" : {
- "type" : "boolean"
- },
- "no_border_left" : {
- "type" : "boolean"
- },
- "no_border_top" : {
- "type" : "boolean"
- },
- "no_border_right" : {
- "type" : "boolean"
- },
- "no_border_bottom" : {
- "type" : "boolean"
- }
- },
- "allOf" : [
- {
- "$ref" : "#/$defs/margin"
- }
- ]
- },
- "image_classes" : {
- "type" : "object",
- "patternProperties" : {
- ".*" : {
- "$ref" : "#/$defs/image"
- }
- }
- },
- "fields_default" : {
- "type" : "object",
- "properties" : {
- "pdf_language" : {
- "type" : "string"
- },
- "pdf_header" : {
- "type" : "string"
- },
- "pdf_header_2" : {
- "type" : "string"
- },
- "pdf_header_3" : {
- "type" : "string"
- },
- "pdf_footer" : {
- "type" : "string"
- },
- "pdf_footer_2" : {
- "type" : "string"
- },
- "pdf_footer_3" : {
- "type" : "string"
- },
- "pdf_header_logo" : {
- "type" : "string"
- },
- "pdf_hyphenation" : {
- "type" : "boolean"
- },
- "pdf_fields" : {
- "type" : "object",
- "patternProperties" : {
- ".*" : {
- "type" : [
- "string",
- "number"
- ]
- }
- }
+ "properties": {
+ "border_width": {
+ "title": "Border width",
+ "description": "One value for border line width on all sides",
+ "$ref": "#/$defs/measurement"
+ },
+ "border_width_left": {
+ "title": "Border width left",
+ "description": "Border width only on the left side",
+ "$ref": "#/$defs/measurement"
+ },
+ "border_width_top": {
+ "title": "Border width top",
+ "description": "Border width only on the top side",
+ "$ref": "#/$defs/measurement"
+ },
+ "border_width_right": {
+ "title": "Border width right",
+ "description": "Border width only on the right side",
+ "$ref": "#/$defs/measurement"
+ },
+ "border_width_bottom": {
+ "title": "Border width bottom",
+ "description": "Border width only on the bottom side",
+ "$ref": "#/$defs/measurement"
+ },
+ "border_color": {
+ "title": "Border color",
+ "description": "One value for border color on all sides",
+ "$ref": "#/$defs/color"
+ },
+ "border_color_left": {
+ "title": "Border color left",
+ "description": "Border color only on the left side",
+ "$ref": "#/$defs/color"
+ },
+ "border_color_top": {
+ "title": "Border color top",
+ "description": "Border color only on the top side",
+ "$ref": "#/$defs/color"
+ },
+ "border_color_right": {
+ "title": "Border color right",
+ "description": "Border color only on the right side",
+ "$ref": "#/$defs/color"
+ },
+ "border_color_bottom": {
+ "title": "Border color bottom",
+ "description": "Border color only on the bottom side",
+ "$ref": "#/$defs/color"
+ },
+ "no_border": {
+ "title": "Disable borders",
+ "description": "Turn off borders on all sides",
+ "type": "boolean"
+ },
+ "no_border_left": {
+ "title": "Disable border left",
+ "description": "Turn off border on the left sides",
+ "type": "boolean"
+ },
+ "no_border_top": {
+ "title": "Disable border top",
+ "description": "Turn off border on the top sides",
+ "type": "boolean"
+ },
+ "no_border_right": {
+ "title": "Disable border right",
+ "description": "Turn off border on the right sides",
+ "type": "boolean"
+ },
+ "no_border_bottom": {
+ "title": "Disable border bottom",
+ "description": "Turn off border on the bottom sides",
+ "type": "boolean"
}
}
}
diff --git a/app/models/work_package/pdf_export/standard.yml b/app/models/work_package/pdf_export/standard.yml
index cfdfa6c7d69..37ed54f9cd2 100644
--- a/app/models/work_package/pdf_export/standard.yml
+++ b/app/models/work_package/pdf_export/standard.yml
@@ -14,6 +14,7 @@ page_header:
page_footer:
offset: -30
size: 8
+ spacing: 6
page_logo:
height: 20
@@ -82,9 +83,6 @@ work_package:
subject_level_4:
size: 11
styles: [ "bold" ]
- label:
- size: 11
- styles: [ "bold" ]
attributes_table:
margin_bottom: 10
cell:
@@ -98,16 +96,6 @@ work_package:
border_width: 0.25
cell_label:
styles: [ "bold" ]
- section:
- heading:
- size: 9
- styles: [ "bold" ]
- margin_top: 4
- margin_bottom: 4
- item:
- size: 9
- styles: [ "italic" ]
- margin_left: 10
markdown_label:
size: 12
styles: [ "bold" ]
diff --git a/app/models/work_package/pdf_export/style.rb b/app/models/work_package/pdf_export/style.rb
index c697f346505..a61c543cf4f 100644
--- a/app/models/work_package/pdf_export/style.rb
+++ b/app/models/work_package/pdf_export/style.rb
@@ -161,30 +161,6 @@ module WorkPackage::PDFExport::Style
resolve_margin(@styles[:work_package])
end
- def wp_section_heading
- resolve_font(@styles.dig(:work_package, :section, :heading))
- end
-
- def wp_section_heading_margins
- resolve_margin(@styles.dig(:work_package, :section, :heading))
- end
-
- def wp_section_item
- resolve_font(@styles.dig(:work_package, :section, :item))
- end
-
- def wp_section_item_margins
- resolve_margin(@styles.dig(:work_package, :section, :item))
- end
-
- def wp_label
- resolve_font(@styles.dig(:work_package, :label))
- end
-
- def wp_label_margins
- resolve_margin(@styles.dig(:work_package, :label))
- end
-
def wp_subject(level)
resolve_font(@styles.dig(:work_package, :subject)).merge(
resolve_font(@styles.dig(:work_package, "subject_level_#{level}".to_sym))