Confluence PDF Export PDF Stylesheet - how to hide table in output pdf export?

Tai Ngo August 17, 2015

Anyone know how to easily hide a table from the PDF export using the PDF Stylesheet facility.

6 answers

1 vote
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2015

Hi Tai Ngo

if you want tables with content but no border just go for "more is more".

div.table-wrap table.confluenceTable tr td, div.table-wrap table.confluenceTable tr th.confluenceTh {  
border: none;  
border-collapse: collapse; 
}

=> Results...

...in wiki

2015-08-18 11_30_42-The Real Test - Steffen Heller - Lightweb.png

...in PDF

2015-08-18 11_34_41-Steffen.Heller-TheRealTest-180815-1134-54.pdf - Adobe Acrobat Pro.png

Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2015

Very nice!

0 votes
Tai Ngo August 18, 2015

Thank you.  That worked.

Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2015

Be sure to mark the question as answered.

0 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2015

You can build the table manually using the HTML Table et al (body, row, cell) macros. Or create the table using wiki markup.

0 votes
Tai Ngo August 17, 2015

...pertains to exporting a PDF...the table borders always show up in the PDF...even with PDF Stylesheet telling them to not show up:  border:none;

0 votes
Tai Ngo August 17, 2015

Thanks, this worked.  But what if i want to just not print the TABLE borders but the table contents?  Doing a Table border:none; in css doesn't work to hide the table borders.

 

0 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2015

Put the table in a div macro and set the class to: noprint

Then add the following to the PDF Stylesheet:

div.noprint
{
display: inline-block ;
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events