Skip to content

Commit d9dcff1

Browse files
committed
additional fix for empty pages in pdf exports hakimel#1804
1 parent 286b69b commit d9dcff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css/print/pdf.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ ul, ol, div, p {
132132
}
133133

134134
/* Slide backgrounds are placed inside of their slide when exporting to PDF */
135-
.reveal section .slide-background {
135+
.reveal .slide-background {
136136
display: block !important;
137137
position: absolute;
138138
top: 0;

js/reveal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@
656656
// Reduce total height by 1px so that the page ends before
657657
// the page, otherwise the page's 'page-break-after' will
658658
// land on the wrong page
659-
page.style.height = ( ( pageHeight * numberOfPages ) - 1 ) + 'px';
659+
page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px';
660660

661661
slide.parentNode.insertBefore( page, slide );
662662
page.appendChild( slide );

0 commit comments

Comments
 (0)