# Bug OP-16175 - Table formatting is not reflected in the PDF export

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-16175

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.3.0 |
| Observed in versions | 15.2.0 |
| Sprint | 15.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Andrej Sandorf |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

1.  Go to <https://qa.openproject-edge.com/projects/test-project-cecile/work\_packages/9685/activity?query\_id=3427>

2.  Click on more

3.  Generate PDF from description

Bug: Table formatting is not reflected on the exported PDF

Example:

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table" style="border:2px solid hsl(90, 75%, 60%);"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="border:2px dotted hsl(0, 0%, 0%);"><p class="op-uc-p">dotted</p></td><td class="op-uc-table--cell" style="background-color:hsl(120, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">column1</p></td><td class="op-uc-table--cell" style="background-color:hsl(120, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">column2</p></td><td class="op-uc-table--cell" style="background-color:hsl(120, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">column3</p></td><td class="op-uc-table--cell" style="background-color:hsl(120, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">column4</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="background-color:hsl(60, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">line1</p></td><td class="op-uc-table--cell" style="border:2px solid hsl(0, 0%, 0%);"><p class="op-uc-p">width: 2px</p></td><td class="op-uc-table--cell" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">default</p></td><td class="op-uc-table--cell" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">default</p></td><td class="op-uc-table--cell" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">default</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="background-color:hsl(60, 75%, 60%);border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">line3</p></td><td class="op-uc-table--cell" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">default</p></td><td class="op-uc-table--cell" style="border:2px dashed hsl(30, 75%, 60%);"><p class="op-uc-p">dashed</p></td><td class="op-uc-table--cell" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><p class="op-uc-p">default</p></td><td class="op-uc-table--cell" style="border:4px solid hsl(0, 0%, 0%);"><p class="op-uc-p">width: 4px</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="background-color:hsl(60, 75%, 60%);"><p class="op-uc-p">line4</p></td><td class="op-uc-table--cell"><p class="op-uc-p">none</p></td><td class="op-uc-table--cell"><p class="op-uc-p">none</p></td><td class="op-uc-table--cell"><p class="op-uc-p">none</p></td><td class="op-uc-table--cell"><p class="op-uc-p">none</p></td></tr></tbody></table></figure>

Example outer border

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table" style="border-color:hsl(0, 0%, 0%);border-style:solid;"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Only an&nbsp;</p></td><td class="op-uc-table--cell"><p class="op-uc-p">outer border</p></td></tr></tbody></table></figure><br>

Out of scope:

  - The pdf library does not fully support outer borders, so it if there is a cell border at same position, it is painted over.

  - User defined column widths are currently not supported. Follow up at <mention class="mention" data-id="61037" data-type="work_package" data-text="#61037">\#61037</mention>
