Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend table width to page with in page header for PDF export

Henrik Zimmermann November 11, 2022

Hi

In the "Look and Feel" option under "PDF Export" I have defined the header for the pages to be exported as PDF files. I have placed a table in the header where each cell eventually will contain document information. However I can't get the table width adjusted such that the with is matching the page with.

Code used the define table header:

<style>
table, td {
border:1px solid black;
border-collapse: collapse;
text-align: center;
}
</style>


<table style="width:100%">
<tr>
<td style="text-align: left">Field 1</td>
<td>Field 2</td>
</tr>

<tr>
<td>Document no:</td>
<td>Document description</td>
</tr>

<tr>
<td>Field 3</td>
<td>Field 4</td>
</tr>
</table>

 I had expected that the <table style="width:100%"> would ensure that the table were stretched across the page, but the result is this:

Pageheader.JPG

I have tried different combinations of writing the with in the "style" part as well as defining the width in centimeters, but nothing seems to help.

A suggestion to determine the width of the table in the page header will be appriciated.

Regards

Henrik

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events