Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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 S 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

Atlassian Community Events