Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 Excerpt Included/Included Pages from PDF Export with free subscription

After searching fruitlessly for CSS options or free macros I have found no solution.

Is there a CSS selector I'm missing?

1 answer

0 votes
Shannon Atlassian Team Mar 04, 2020

Hello @niconeiros,

Welcome to Atlassian Community! It's nice to meet you.

I believe you may be referring the following workaround that was mentioned in the Advanced PDF Export Customizations in the documentation for Confluence Server:

Hiding Text from the PDF Output

This section describes a way to hide text from your PDF export. In other words, you can have text on the Confluence page that will not appear in the PDF export.

There are three steps:

  1. Follow the instructions to define the NoPrint user macro.

  2. Use the NoPrint macro to mark some text on a Confluence page.
  3. Add the following CSS to your PDF stylesheet to make the PDF export recognize the NoPrint macro:

.noprint { display: none ; }

However, as this requires you create a user macro, it is not possible in Confluence Cloud.

See Functional Differences in Confluence Cloud for further details:

User Macros

User macros allow HTML and JavaScript to run in Confluence Cloud, which can affect performance. To see what custom macros can be added to Confluence Cloud, check out the Atlassian Marketplace. Note: To install any of the Confluence Cloud macro apps, you must be the administrator for the Atlassian Cloud site.

Luckily, there are a few add-ons that could help you with this. I would recommend having a look at the PDF add-ons available for Confluence Cloud in the Atlassian Marketplace. I think the Scroll PDF Exporter or NoPrint macro might be a place to start.

Let me know if you have any questions about this!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

527 views 15 17
Read article

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