cleaver icon indicating copy to clipboard operation
cleaver copied to clipboard

Feature: Export PDF via Chrome `Print...`

Open anqur opened this issue 8 years ago • 3 comments

  • This feature could be easily achieved by this:
@media print {
  .some-slide-container {
    page-break-after: always !important;
  }
  .some-slide-container:last-of-type {
    page-break-after: avoid !important;
  }
}
  • Here is a HTML template from my legacy similar Markdown-based slideshow generator in Python
  • I thought it might be a good workaround when encountering some low-version browsers by using PDF slideshow

anqur avatar Apr 27 '17 14:04 anqur

We have some similar code in default.css

.slide:nth-child(even) {
    /* 2 slides per page */
    page-break-before: always;
}

Does that cover it?

jdan avatar Apr 28 '17 04:04 jdan

  • I'm quite sorry that I haven't read the code thoroughly yet, but I did try to Print... the page and noticed that no Portrait/Landscape setting was found and there are at least 2 slides per page
  • I think the perfect scenario is Print...-ing with Landscape, every page having a well-styled single slide when no margins selected, and background images also enabled (this works though)
  • I could go through the stylesheets and test this in my further time

anqur avatar Apr 28 '17 05:04 anqur

  • Here is my legacy demo page that could illustrate my Print... ideas...
    • https://anqurvanillapy.github.io/gmhp/ (try Layout: Landscape selected)

anqur avatar Apr 28 '17 05:04 anqur