• Community
  • Products
  • Confluence
  • Questions
  • How to properly configure the No Print macro and a space's PDF Export Stylesheet to prevent the printing of the contents within the No Print macro?

How to properly configure the No Print macro and a space's PDF Export Stylesheet to prevent the printing of the contents within the No Print macro?

  • I used the following to configure this macro:

 

FieldValue
Macro namenoprint
Macro TitleNo Print
Template
## @noparams
<div class="noprint">$body</div>

 

  • I used the following to configure the space's PDF Export Stylesheet: however, the contents within the No Print macro continues to be downloaded to a .pdf file.  



 

div.noprint  
{  
display: none ;  
}

 

 

 

    • I also tried using the following for configuring the space's PDF Export Styelsheet, but the contents within the No Print macro continued to be downloaded to a .pdf file
.noprint  
{  
display: none ;  
}

 

  •  Any ideas what I should do to control the printing or no printing of the body content of the No Print macro?

 

2 answers

0 vote
Wayne Wong Atlassian Team Oct 29, 2014

Hi there,

 

Have you tried to use the macro directly from the page instead of adding it ad the stylesheet? 

 

Using the 'NoPrint' Macro on a page

Add the macro to your Confluence page using the Macro Browser. Text entered into the body of the macro placeholder will not be printed, but will appear when the page is viewed online.

 

If the problem persists, could you please provide us storage format of the an sample page, and the sample pdf?

 

Thank you.

 

Regards,

Wayne Wong

To Whom It May Concern,

The problem definitely persists.  The No Print macro config, page edit config, PDF Stylesheet config, and Export to PDF file are attached.

No Print Macro Configuration.png

Page Edit Screen.png

PDF Stylesheet Configuration.png



Bottom Line:  The text within the No Print macro will not print at this time.  I need to know what PDF Stylesheet config is needed to allow the No Print macro contents to be printed or not printed.

 

Many thanks for your timely assistance.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

210 views 3 3
Join discussion

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