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

Exclude Content from PDF Export

In older versions, there was a noprint macro that you could use to exclude content that you didn't want to be included in a PDF export.

How do we do this in the current Confluence version?

2 answers

1 accepted

3 votes
Answer accepted

The fabulous @Thomas_Schlegel once posted a user macro for this:

This macro should have a rendered body and the following Template:

## @noparams
<div class="NoPrint">$body</div>

Add the following to the PDF Stylesheet:

.NoPrint { display: none ; }

Put the content to be hidden in the body of the macro.

Thomas_Schlegel Community Leader Aug 21, 2019

:-)

Like # people like this
Stephanie_Grice Community Manager Aug 21, 2019

@Thomas_Schlegel is fabulous, it's true! :) 

Like # people like this

@Thomas_Schlegel 

Which macro comes from you or where do I have to insert this code into Confluence? Is there a manual?

Thomas_Schlegel Community Leader Aug 29, 2019

Hi @Simon Nimführ , 

as an administrator of Confluence, you can create user macros on your own (not for cloud instances, only for server).

I described creating user macros in an article some time ago:

https://community.atlassian.com/t5/Confluence-articles/The-Admin-s-tale-User-Macro-filtering-a-Confluence-table/ba-p/459369

It's another use case, but you can find the basics of creating a user macro there.

If you have more questions, don't hesitate to ask. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

306 views 9 7
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you