Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlaaHamoudah opened this issue Sep 17, 2019 · 3 comments
Open

Comments

@AlaaHamoudah
Copy link

AlaaHamoudah commented Sep 17, 2019

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

@0583296053
Copy link

I also have this problem.
what I need to do to fix it?

@AlaaHamoudah
Copy link
Author

AlaaHamoudah commented Mar 5, 2020

  • Are you using a template or ur own custom template?
  • Also please clear the browser cache
  • Try it in a very basic angular app, and start from there

@0583296053
Copy link

using coreui admin template
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants