How to make the export to word from confluence to respect the noprint macro?

Joao Flavio Mendonca November 29, 2018

Hello all, 

 

I am trying to customize the export to word feature from confluence, however, I would like to remove the noprint content and the attachment plugin when exporting the file.

Someone has an idea how to do it?

I already used the same code for the export pdf but it is still not working....

Thanks in advance

Joao Flavio

2 answers

0 votes
Joao Flavio Mendonca December 3, 2018

Hello again Alex, 

I add the !important in the code, but I still have the same issue, all the content is gone but the table is still appearing ... as you said it is very odd.

 

Thanks again

Best Regards

Joao Flavio

0 votes
Alex Fox November 30, 2018

You need to make sure the relevant .css file has a class to hide the noprint content:

div.noprint {

display:none

}
Joao Flavio Mendonca November 30, 2018

Hello Alex, 

Thanks a lot for your answer, it is partially working...

All the content which is inside the no print "area" were not exported to the word document, however, in one of my no print "areas" I have a table which is still being exported to word.

By the way, is not a problem of my no print macro since when I export the same page in PDF the table doesn't appear in the document.

Thanks again

Best Regards

Joao Flavio

Alex Fox November 30, 2018

Hi Joao,

It is very odd that you have some elements still showing. You could try making the class !important: 

div.noprint {

display:none !important

}

I'm not sure this will work but it's worth a try

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events