MiServer output pages to PDF for print

MiServer is Dyalog's APL-based web development framework

Re: MiServer output pages to PDF for print

Postby kai on Sun Oct 13, 2024 6:42 am

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/
User avatar
kai
 
Posts: 141
Joined: Thu Jun 18, 2009 5:10 pm
Location: Hillesheim / Germany

Re: MiServer output pages to PDF for print

Postby Gantois on Wed Oct 16, 2024 1:21 pm

Thanks Kay,
// Marco
Gantois
 
Posts: 91
Joined: Thu Apr 17, 2014 9:44 am

Previous

Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest