Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hello,
I'm trying to configure a proper pdf stylesheet in Confluence, and I'm not getting to a solution.
Given a table, which turns out to have the following storage format
<table class="wrapped fixed-table"><colgroup><col style="width: 136.0px;" /><col style="width: 267.0px;" /><col style="width: 125.0px;" /></colgroup>
I'd like to get the same column proportion when exporting to pdf.
I'd like to have the total width of the table to fill the available width of the page, and to have the width of the columns with the same relative dimension.
First column width should be set to (136/(136+267+125))% of the table width.
I'm quite a newbie with CSS, so I wonder if there's a simple way to get this done.
I'm not finding a way to control this proportion.
Thanks in advance for any hint.
Ciao, Andrea.
As an update for those ones who might be reading, in the end the only solution we found was to adopt this plugin
which actually works very well.
Before a table you can place a specific macro where you can set the width of each colum of the next table, each column in terms of % of the whole page width.
This macro will be read when exporting.
For us it works very well.
Ciao, Andrea
Hi Andrea,
Check out Atlassian's Customize Exports to PDF and Advanced PDF Export Customization pages for information on managing stylesheets. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Joshua Sneed Contegix and thanks for your answer.
I had actually already read those pages, but didn't find anything that works for me.
I don't need to set the table width, as to me it's OK to have it using all the available page width.
It seems like the only change I could add is to say to fix all the columns to the same width, and force images to be resized in case of need.
Or, as it works by default, I can leave the automatic definition of the table columns, and in this way the exporter seems to try to follow the proportions set by the user, up to when it's possible to some how fit the content.
It's not clear to me the criteria used to define the column width.
As a basic behaviour, I'd like the exporter to read the proportions set by the user and create a table that covers the whole page width, recreating the same column width proportions, regardless if it is a repsonsive or fixed table, and regardless if this means that a row becomes very high. Images should be resized, if needed, and that would be all.
Then I could try to play a bit more with text styling.
Is there something I'm missing?
:-(
Ciao, Andrea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.