Back to Openproject

Attributes and description PDF

docs/system-admin-guide/design/pdf-export-styles/attributes-and-description/README.md

17.3.131.6 KB
Original Source

Attributes and description PDF

This document describes the style settings format for the PDF Export styling file.

KeyDescriptionData type
pagePage settings
Properties to set the basic page settings
See Page settingsobject
page_logoPage logo
Styling for logo image in the page header.
See Page logoobject
page_headerPage headers
See Page headersobject
page_footerPage footers
See Page footersobject
page_headingPage heading
The main page title heading
See Page headingobject
work_packageWork package
Styling for the Work package section
See Work packageobject
wp_tableWork package table
Styling for the related tables (Form configuration)
See Work package tableobject
inline_errorFont properties
Styling for inline error messages
See Font propertiesobject
inline_hintFont properties
Styling for inline hint messages
See Font propertiesobject

Alert

Styling to denote a quote as alert box

Key: alert

Example:

yml
ALERT:
  alert_color: f4f9ff
  border_color: f4f9ff
  border_width: 2
  no_border_right: true
  no_border_left: false
  no_border_bottom: true
  no_border_top: true
KeyDescriptionData type
background_colorColor
A color in RRGGBB format
Example: F0F0F0string
alert_colorColor
A color in RRGGBB format
Example: F0F0F0string
See Font properties
See Border Properties
See Padding Properties
See Margin properties

Alert boxes (styled blockquotes)

Key: alerts

KeyDescriptionData type
NOTEAlert
Styling to denote a quote as alert box
See Alertobject
TIPAlert
Styling to denote a quote as alert box
See Alertobject
WARNINGAlert
Styling to denote a quote as alert box
See Alertobject
IMPORTANTAlert
Styling to denote a quote as alert box
See Alertobject
CAUTIONAlert
Styling to denote a quote as alert box
See Alertobject

Border Properties

Properties to set borders

Key: border

Example:

yml
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
KeyDescriptionData type
border_widthBorder width
One value for border line width on all sides
Examples: 10mm, 10number or string
See Units
border_width_leftBorder width left
Border width only on the left side
Examples: 10mm, 10number or string
See Units
border_width_topBorder width top
Border width only on the top side
Examples: 10mm, 10number or string
See Units
border_width_rightBorder width right
Border width only on the right side
Examples: 10mm, 10number or string
See Units
border_width_bottomBorder width bottom
Border width only on the bottom side
Examples: 10mm, 10number or string
See Units
border_colorBorder color
One value for border color on all sides
Example: F0F0F0string
border_color_leftBorder color left
Border color only on the left side
Example: F0F0F0string
border_color_topBorder color top
Border color only on the top side
Example: F0F0F0string
border_color_rightBorder color right
Border color only on the right side
Example: F0F0F0string
border_color_bottomBorder color bottom
Border color only on the bottom side
Example: F0F0F0string
no_borderDisable borders
Turn off borders on all sidesboolean
no_border_leftDisable border left
Turn off border on the left sidesboolean
no_border_topDisable border top
Turn off border on the top sidesboolean
no_border_rightDisable border right
Turn off border on the right sidesboolean
no_border_bottomDisable border bottom
Turn off border on the bottom sidesboolean

Cell alignment properties

Properties to set vertical and horizontal alignment of table cells

Key: cell_alignment

Example:

yml
align: center
valign: middle
KeyDescriptionData type
alignHorizontal alignment
Set the horizontal alignment of the content in a cell
Example: center
Valid values:
left, center, rightstring
valignVertical alignment
Border width only on the left side
Example: middle
Valid values:
top, center, middle, bottomstring

Font properties

Styling for inline error messages

Key: inline_error

Example:

yml
font: OpenSans
size: 10
character_spacing: 0
styles: []
color: '000000'
leading: 2
KeyDescriptionData type
fontstring
sizeA number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
character_spacingA number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
leadingA number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
colorColor
A color in RRGGBB format
Example: F0F0F0string
stylesExample: [bold]
Valid values:
bold, italic, underline, strikethrough, superscript, subscriptarray of string

HTML table

Key: html_table

Example:

yml
table:
  auto_width: true
  header:
    background_color: F0F0F0
    no_repeating: true
    size: 12
  cell:
    background_color: 000FFF
    size: 10
KeyDescriptionData type
auto_widthAutomatic column widths
Table columns should fit the content, equal spacing of columns if value is falseboolean
headerTable header cell
Styling for a table header cell
See Table header cellobject
cellTable cell
Styling for a table cell
See Table cellobject
See Margin properties
See Border Properties

Horizontal rule for attributes group rule

Key: hr

Example:

yml
border:
  color: d3dee3
  height: 1
KeyDescriptionData type
heightLine height of the horizontal rule
A number >= 0 and an optional unit
Example: 1number or string
See Units
colorLine color of the horizontal rule
A color in RRGGBB format
Example: F0F0F0string

Image caption

Styling for the caption below an image

Key: caption

KeyDescriptionData type
alignValid values:
left, center, right, justifystring
See Font properties
See Padding Properties

Margin properties

Properties to set margins

Key: margin

Example:

yml
margin: 10mm
margin_top: 15mm
KeyDescriptionData type
marginMargin
One value for margin on all sides
Examples: 10mm, 10number or string
See Units
margin_leftMargin left
Margin only on the left side
Examples: 10mm, 10number or string
See Units
margin_rightMargin right
Margin only on the right side
Examples: 10mm, 10number or string
See Units
margin_topMargin top
Margin only on the top side
Examples: 10mm, 10number or string
See Units
margin_bottomMargin bottom
Margin only on the bottom side
Examples: 10mm, 10number or string
See Units

Styling a clickable link

Key: link

Example:

yml
link:
  color: '000088'
KeyDescriptionData type
See Font properties

Markdown Styling

Styling for content of work package description and long text custom fields

Key: markdown

Example:

yml
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: {}
KeyDescriptionData type
fontFont properties
Properties to set the font style
See Font propertiesobject
paragraphMarkdown paragraph
A block of text
See Markdown paragraphobject
tableMarkdown table
See Markdown tableobject
html_tableHTML table
See HTML tableobject
headless_tableMarkdown headless table
Tables without or empty header rows can be styled differently.
See Markdown headless tableobject
codeMarkdown code
Styling to denote a word or phrase as code
See Markdown codeobject
codeblockMarkdown code block
Styling to denote a paragraph as code
See Markdown code blockobject
linkMarkdown Link
Styling a clickable link
See Markdown Linkobject
imageMarkdown image
Styling of images
See Markdown imageobject
hruleMarkdown horizontal rule
Styling for horizontal lines
See Markdown horizontal ruleobject
headerMarkdown header
Default styling for headers on all levels.
use header_x as key for header level x.
See Markdown headerobject
blockquoteMarkdown blockquote
Styling to denote a paragraph as quote
See Markdown blockquoteobject
ordered_listMarkdown ordered list
Default styling for ordered lists on all levels.
use ordered_list_x as key for ordered list level x.
See Markdown ordered listobject
ordered_list_pointMarkdown ordered list point
Default styling for ordered list points on all levels.
use ordered_list_point_x as key for ordered list points level x.
See Markdown ordered list pointobject
unordered_listMarkdown unordered list
Default styling for unordered lists on all levels.
use unordered_list_x as key for unordered list level x.
See Markdown unordered listobject
unordered_list_pointMarkdown unordered list point
Default styling for unordered list points on all levels.
use unordered_list_point_x as key for unordered list points level x.
See Markdown unordered list pointobject
task_listMarkdown task list
See Markdown unordered listobject
task_list_pointMarkdown task list point
See Markdown task list pointobject
alertsAlert boxes (styled blockquotes)
See Alert boxes (styled blockquotes)object
ordered_list_point_1
ordered_list_point_2
ordered_list_point_xMarkdown ordered list point level
See Markdown ordered list pointobject
ordered_list_1
ordered_list_2
ordered_list_xMarkdown ordered list level
See Markdown ordered listobject
unordered_list_point_1
unordered_list_point_2
unordered_list_point_xMarkdown unordered list point level
See Markdown unordered list pointobject
unordered_list_1
unordered_list_2
unordered_list_xMarkdown unordered List Level
See Markdown unordered listobject
header_1
header_2
header_xMarkdown header level
See Markdown headerobject

Markdown blockquote

Styling to denote a paragraph as quote

Key: blockquote

Example:

yml
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
KeyDescriptionData type
background_colorColor
A color in RRGGBB format
Example: F0F0F0string
See Font properties
See Border Properties
See Padding Properties
See Margin properties

Markdown code

Styling to denote a word or phrase as code

Key: code

Example:

yml
code:
  font: Consolas
  color: '880000'
KeyDescriptionData type
See Font properties

Markdown code block

Styling to denote a paragraph as code

Key: codeblock

Example:

yml
codeblock:
  background_color: F5F5F5
  font: Consolas
  size: 8
  color: '880000'
  padding: 3mm
  margin_top: 2mm
  margin_bottom: 2mm
KeyDescriptionData type
background_colorColor
A color in RRGGBB format
Example: F0F0F0string
See Font properties
See Padding Properties
See Margin properties

Markdown header

Key: header

Example:

yml
header:
  styles:
    - bold
  padding_top: 2mm
  padding_bottom: 2mm
header_1:
  size: 14
  styles:
    - bold
    - italic
header_2:
  size: 12
  styles:
    - bold
KeyDescriptionData type
See Font properties
See Padding Properties

Markdown headless table

Tables without or empty header rows can be styled differently.

Key: headless_table

Example:

yml
headless_table:
  auto_width: true
  cell:
    style: underline
    background_color: 000FFF
KeyDescriptionData type
auto_widthAutomatic column widths
Table columns should fit the content, equal spacing of columns if value is falseboolean
cellTable cell
Styling for a table cell
See Table cellobject
See Margin properties
See Border Properties

Markdown horizontal rule

Styling for horizontal lines

Key: hrule

Example:

yml
hrule:
  line_width: 1
KeyDescriptionData type
line_widthSets the stroke width of the horizontal rule
A number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
See Margin properties

Markdown image

Styling of images

Key: image

Example:

yml
image:
  max_width: 50mm
  margin: 2mm
  margin_bottom: 3mm
  align: center
  caption:
    align: center
    size: 8
KeyDescriptionData type
max_widthMaximum width of the image
A number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
alignAlignment
How the element should be aligned
Example: center
Valid values:
left, center, rightstring
captionImage caption
Styling for the caption below an image
See Image captionobject
See Margin properties

Markdown ordered list

Key: ordered_list

Example:

yml
ordered_list:
  spacing: 2mm
  point_inline: false
KeyDescriptionData type
spacingSpacing
Additional space between list items
Examples: 10mm, 10number or string
See Units
point_inlineInline Point
Do not indent paragraph text, but include the point into the first paragraphboolean
See Font properties
See Padding Properties

Markdown ordered list point

Key: ordered_list_point

Example:

yml
ordered_list_point:
  template: "<number>."
  list_style_type: decimal
  spacing: 0.75mm
  spanning: true
KeyDescriptionData type
spacingA number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
alphabeticalAlphabetical bullet points
(deprecated; use list_style_type) Convert the list item number into a character, eg. a. b. c.boolean
list_style_typeList style type
The style of the list bullet points, eg. decimal, lower-latin, upper-roman
Valid values:
decimal, lower-latin, lower-roman, upper-latin, upper-romanstring
spanningSpanning
Use the width of the largest bullet as indention.boolean
templateTemplate
customize what the prefix should contain, eg. (<number>)string
See Font properties

Markdown paragraph

A block of text

Key: paragraph

Example:

yml
paragraph:
  align: justify
  padding_bottom: 2mm
KeyDescriptionData type
alignValid values:
left, center, right, justifystring
See Font properties
See Padding Properties

Markdown table

Key: table

Example:

yml
table:
  auto_width: true
  header:
    background_color: F0F0F0
    no_repeating: true
    size: 12
  cell:
    background_color: 000FFF
    size: 10
KeyDescriptionData type
auto_widthAutomatic column widths
Table columns should fit the content, equal spacing of columns if value is falseboolean
headerTable header cell
Styling for a table header cell
See Table header cellobject
cellTable cell
Styling for a table cell
See Table cellobject
See Margin properties
See Border Properties

Markdown task list point

Key: task_list_point

Example:

yml
task_list_point:
  checked: "☑"
  unchecked: "☐"
  spacing: 0.75mm
KeyDescriptionData type
checkedChecked sign
Sign for checked state of a task list itemstring
uncheckedUnchecked sign
Sign for unchecked state of a task list itemstring
spacingSpacing
Additional space between point and list item content
Examples: 10mm, 10number or string
See Units
See Font properties

Markdown unordered list

Key: unordered_list

Example:

yml
unordered_list:
  spacing: 1.5mm
  padding_top: 2mm
  padding_bottom: 2mm
KeyDescriptionData type
spacingSpacing
Additional space between list items
Examples: 10mm, 10number or string
See Units
See Font properties
See Padding Properties

Markdown unordered list point

Key: unordered_list_point

Example:

yml
unordered_list_point:
  sign: "•"
  spacing: 0.75mm
KeyDescriptionData type
signSign
The 'bullet point' character used in the liststring
spacingSpacing
Space between point and list item content
Examples: 10mm, 10number or string
See Units
See Font properties

Overview group heading

Styling for the group label if grouping is activated

Key: group_heading

Example:

yml
group_heading:
  size: 11
  styles:
    - bold
  margin_bottom: 10
KeyDescriptionData type
See Font properties
See Margin properties

Overview table

Key: table

Example:

yml
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
KeyDescriptionData type
subject_indentIndent subject
Indent by work package level in the subject cell
Examples: 10mm, 10number or string
See Units
cellTable cell
Styling for a table value cell
See Table cellobject
cell_headerTable header cell
Styling for a table header cell
See Table cellobject
cell_sumsTable sum cell
Styling for a table sum cell
See Table cellobject
See Margin properties

Padding Properties

Properties to set paddings

Key: padding

Example:

yml
padding: 10mm
padding_top: 15mm
KeyDescriptionData type
paddingPadding
One value for padding on all sides
Examples: 10mm, 10number or string
See Units
padding_leftPadding left
Padding only on the left side
Examples: 10mm, 10number or string
See Units
padding_rightPadding right
Padding only on the right side
Examples: 10mm, 10number or string
See Units
padding_topPadding top
Padding only on the top side
Examples: 10mm, 10number or string
See Units
padding_bottomPadding bottom
Padding only on the bottom side
Examples: 10mm, 10number or string
See Units

Page footers

Key: page_footer

Example:

yml
page_footer:
  offset: -30
  size: 8
KeyDescriptionData type
offsetOffset position from page bottom
A positive or negative number and an optional unit
Example: -30number or string
See Units
spacingMinimum spacing between different page footers
A number >= 0 and an optional unit
Example: 8number or string
See Units
See Font properties

Page headers

Key: page_header

Example:

yml
page_header:
  align: left
  offset: 20
  size: 8
KeyDescriptionData type
alignAlignment
How the element should be aligned
Example: center
Valid values:
left, center, rightstring
offsetOffset position from page top
A positive or negative number and an optional unit
Example: -30number or string
See Units
See Font properties

Page heading

The main page title heading

Key: page_heading

Example:

yml
page_heading:
  size: 14
  styles:
    - bold
  margin_bottom: 10
KeyDescriptionData type
See Font properties
See Margin properties

Styling for logo image in the page header.

Key: page_logo

Example:

yml
page_logo:
  height: 20
  align: right
KeyDescriptionData type
heightHeight of the image
A number >= 0 and an optional unit
Examples: 10mm, 10number or string
See Units
alignAlignment
How the element should be aligned
Example: center
Valid values:
left, center, rightstring
offsetOffset position from page top
A positive or negative number and an optional unit
Example: -30number or string
See Units

Page settings

Properties to set the basic page settings

Key: page

Example:

yml
page:
  page_size: EXECUTIVE
  margin_top: 60
  margin_bottom: 60
  margin_left: 36
  margin_right: 36
  page_break_threshold: 200
  link_color: 175A8E
KeyDescriptionData type
link_colorLink color
Set the color of clickable links
Example: F0F0F0string
page_layoutPage layout
The layout of a page
Example: portrait
Valid values:
portrait, landscapestring
page_sizePage size
The size of a page
Example: EXECUTIVE
Valid values:
EXECUTIVE, TABLOID, LETTER, LEGAL, FOLIO, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, RA0, RA1, RA2, RA3, RA4, SRA0, SRA1, SRA2, SRA3, SRA4, 4A0, 2A0string
page_break_thresholdPage break threshold
If there is a new section, start a new page if space less than the threshold is available
Examples: 10mm, 10number or string
See Units
Default font settings
See Font properties
Page margins
See Margin properties

Table cell

Styling for a table cell

Key: table_cell

Example:

yml
table_cell:
  size: 9
  color: '000000'
  padding: 5
  border_width: 1
KeyDescriptionData type
See Font properties
See Padding Properties
See Border Properties
See Cell alignment properties

Table header cell

Styling for a table header cell

Key: table_header

Example:

yml
table_header:
  size: 9
  styles:
    - bold
KeyDescriptionData type
background_colorColor
A color in RRGGBB format
Example: F0F0F0string
no_repeatingboolean
See Font properties
See Padding Properties
See Border Properties
See Cell alignment properties

Work package

Styling for the Work package section

Key: work_package

Example:

yml
work_package:
  margin_bottom: 20
  subject: {}
  subject_level_1: {}
  subject_level_2: {}
  subject_level_3: {}
  attributes_table: {}
  markdown_label: {}
  markdown_margin: {}
  markdown: {}
KeyDescriptionData type
subjectWork package subject
Styling for the Work package subject headline
See Work package subjectobject
attributes_tableWork package attributes
Styling for the Work package attributes table
See Work package attributesobject
attributes_groupWork package attributes group label
Label headline for a work package attributes group
See Work package attributes group labelobject
markdown_labelWork package markdown label
Label headline for work package description and long text custom fields
See Work package markdown labelobject
markdown_marginWork package markdown margins
Margins for work package description and long text custom fields
See Work package markdown marginsobject
markdownMarkdown Styling
Styling for content of work package description and long text custom fields
See Markdown Stylingobject
See Margin properties
subject_level_1
subject_level_2
subject_level_xSee Work package subject levelobject

Work package attributes

Styling for the Work package attributes table

Key: attributes_table

Example:

yml
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
KeyDescriptionData type
cellAttribute value table cell
Styling for a table cell with attribute value
See Table cellobject
cell_labelAttribute label table cell
Styling for a table cell with attribute label
See Table cellobject
See Margin properties

Work package attributes group label

Label headline for a work package attributes group

Key: attributes_group

Example:

yml
attributes_group:
  size: 12
  styles:
    - bold
  margin_top: 2
  margin_bottom: 4
KeyDescriptionData type
hrHorizontal rule for attributes group rule
See Horizontal rule for attributes group ruleobject
See Font properties
See Margin properties

Work package markdown label

Label headline for work package description and long text custom fields

Key: markdown_label

Example:

yml
markdown_label:
  size: 12
  styles:
    - bold
  margin_top: 2
  margin_bottom: 4
KeyDescriptionData type
See Font properties
See Margin properties

Work package markdown margins

Margins for work package description and long text custom fields

Key: markdown_margin

Example:

yml
markdown_margin:
  margin_bottom: 16
KeyDescriptionData type
See Margin properties

Work package subject

Styling for the Work package subject headline

Key: subject

Example:

yml
subject:
  size: 10
  styles:
    - bold
  margin_bottom: 10
KeyDescriptionData type
See Font properties
See Margin properties

Work package subject level

Key: subject_level_x

Example:

yml
subject_level_1:
  size: 14
  styles:
    - bold
subject_level_2:
  size: 13
  styles:
    - bold
subject_level_3:
  size: 12
  styles:
    - bold
KeyDescriptionData type
See Font properties
See Margin properties

Work package table

Styling for the related tables (Form configuration)

Key: wp_table

Example:

yml
overview:
  group_heading: {}
  table: {}
KeyDescriptionData type
group_headingOverview group heading
Styling for the group label if grouping is activated
See Overview group headingobject
tableOverview table
See Overview tableobject

Units

available units are

mm - Millimeter, cm - Centimeter, dm - Decimeter, m - Meter

in - Inch, ft - Feet, yr - Yard

pt - Postscript point (default if no unit is used)