It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hide specific macros in PDF export

Hi there,

I'd like to hide specific macros, like the attachment macro, when I export a page or a space to PDF. Is there an easy solution or do I have to use the "NoPrint" workaround (create a user macro and define custome CSS) described here:

Thank you,


2 answers

1 accepted

All the noprint macro does is set up a container with the "noprint" class on it.

You should be able to use the same technique in your PDF stylesheet by applying display:none to whatever selector you want, eg:

.plugin_attachments_container { display: none; }

That way you don't need to set up the noprint macro. It does mean you will not see the attachments macro in any PDF export, that is you don't have the fine-grained control offered by using the macro. So use the technique with caution :)

What is "PDF Stylesheed", how can I define them?

Any idea how to find selectors? I've posted this question as


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,277 views 12 24
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you