MiServer output pages to PDF for print

MiServer is Dyalog's APL-based web development framework
User avatar
kai
Posts: 141
Joined: Thu Jun 18, 2009 5:10 pm
Location: Hillesheim / Germany

Re: MiServer output pages to PDF for print

Post by kai »

Marco,

You can assign a bit of CSS to the button in order to prevent it from being printed.

This defines a class "no-print":

Code: Select all

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}
Assign that class to the button and it will show but not print.

Having a dedicated print style sheet is generally not a bad idea:

https://alistapart.com/article/goingtoprint/
Gantois
Posts: 91
Joined: Thu Apr 17, 2014 9:44 am

Re: MiServer output pages to PDF for print

Post by Gantois »

Thanks Kay,
// Marco
Post Reply