• 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

This widget could not be displayed.
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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 14, 2018 in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

172 views 12 7
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