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

Fix CSS for Chrome PDF Print #3

Open
d6y opened this issue Feb 23, 2017 · 2 comments
Open

Fix CSS for Chrome PDF Print #3

d6y opened this issue Feb 23, 2017 · 2 comments

Comments

@d6y
Copy link
Contributor

d6y commented Feb 23, 2017

As of today, File > Print from Chrome produces the best looking PDF. If we include this in the template:

gnab/remark#50 (comment)

@d6y d6y changed the title Fix CSS for Chrime PDF Print Fix CSS for Chrome PDF Print Feb 23, 2017
@d6y
Copy link
Contributor Author

d6y commented Feb 23, 2017

We also need to disable animations (these appear as blank pages in the PDF):

@media print {
  * {
     animation : none !important;
     transition-property: none !important;
  }
}

@MRigal
Copy link

MRigal commented Oct 12, 2017

works very well for me, except that the code blocks are empty when Printing to PDF (but rendered on screen) when I use some fonts like Ubuntu Mono 👎
UPDATE: one should tick the box 'Background graphics' at export!

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