cleaver
cleaver copied to clipboard
Feature: Export PDF via Chrome `Print...`
- 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
We have some similar code in default.css
.slide:nth-child(even) {
/* 2 slides per page */
page-break-before: always;
}
Does that cover it?
- 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
- Here is my legacy demo page that could illustrate my
Print...ideas...- https://anqurvanillapy.github.io/gmhp/ (try
Layout: Landscapeselected)
- https://anqurvanillapy.github.io/gmhp/ (try