Skip to content

Save as pdf and preview mode don't detect the print media style! #2

@AlaaHamoudah

Description

@AlaaHamoudah

I did exact the same work, but what is showing in the window preview is the screen style, what is shown in the print simulation mode in chrome is the print css style, what is printed is the print mode?! When I save as pdf is export the screen style!!
This is really weird, don't know what to do :(

Here is my css

printed-dashboard {
/* hide the printing component from @media screen */
display: none !important;
}

@media print {
/* invert the display (show/hide) properties of the main */
/* application component and the printing component       */

 printed-dashboard {
  display: block !important;
}

dashboard,
m-header {
  display: none !important;
}
}

FYI, I am using metronic template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions