diff --git a/css/print/pdf.css b/css/print/pdf.css index e43d05c68ee0bebe9d29c824bbe8df237424d2c6..7bcc6cbb4a974ab3413e9c7d945545e692678569 100644 --- a/css/print/pdf.css +++ b/css/print/pdf.css @@ -119,6 +119,7 @@ ul, ol, div, p { margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; + min-height: 1px; opacity: 1 !important; diff --git a/js/reveal.js b/js/reveal.js index 4e8f9f2caa19860ce2ca362b9a2edc1931ed94eb..6e6c12b80a27cdf634d3ebbae878b467c67a4cca 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -468,7 +468,7 @@ top = ( pageHeight - slideHeight ) / 2; var contentHeight = getAbsoluteHeight( slide ); - var numberOfPages = Math.ceil( contentHeight / pageHeight ); + var numberOfPages = Math.max( Math.ceil( contentHeight / pageHeight ), 1 ); // Center slides vertically if( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {