Page 2 of 2

Re: MiServer output pages to PDF for print

Posted: Sun Oct 13, 2024 6:42 am
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/

Re: MiServer output pages to PDF for print

Posted: Wed Oct 16, 2024 1:21 pm
by Gantois
Thanks Kay,
// Marco