This page last changed on Jun 08, 2010 by gcheck.

Making a NoPrint Macro and CSS, for hidding Comments, or anything on Print, or PDF Export

This page Requires NoPrint Macro, please try to configure your User Macro First

The NoPrint macro, is a useful macro for Hidding information within a page.
It's usage permits the user to bound what should be ommited from the Print or PDF Export.
This should help some with those needs above.

Here is a some Screen-shoots:

Here is how you'll see on your page. And Editing.

And here is Exported to PDF.

How to setup your own NoPrint ( Mind it's lowercase only):

  • Making the CSS PDF Stylesheet:
    1. Go to You Space, then Browse>Space Admin, Select PDF Stylesheet, Edit and put this
      .noprint {
      display: none ;
      }

      , then save.

    2. CSS Done!
  • Now you can test.
    1. The usage would be: (Here we will use our NoPrint Macro
       text, text, text...
      {noprint} This text is NOT displayed in print mode, or PDF {noprint}

Once you finish Let your users know they can use this, but you'll need to Add this to your Space Admin.


New Canvas2.jpg (image/jpeg)
New Canvas.jpg (image/jpeg)
New Canvas3.jpg (image/jpeg)
Document generated by Confluence on Jul 09, 2010 01:08