From d9dcff1503cb4e8043a2b434de3cc635914164cb Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 24 Jan 2017 15:27:27 +0100 Subject: [PATCH] additional fix for empty pages in pdf exports #1804 --- css/print/pdf.css | 2 +- js/reveal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/print/pdf.css b/css/print/pdf.css index 8c82f73..d3bf951 100644 --- a/css/print/pdf.css +++ b/css/print/pdf.css @@ -132,7 +132,7 @@ ul, ol, div, p { } /* Slide backgrounds are placed inside of their slide when exporting to PDF */ -.reveal section .slide-background { +.reveal .slide-background { display: block !important; position: absolute; top: 0; diff --git a/js/reveal.js b/js/reveal.js index 8b00420..95a4883 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -656,7 +656,7 @@ // Reduce total height by 1px so that the page ends before // the page, otherwise the page's 'page-break-after' will // land on the wrong page - page.style.height = ( ( pageHeight * numberOfPages ) - 1 ) + 'px'; + page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px'; slide.parentNode.insertBefore( page, slide ); page.appendChild( slide );