fix empty pages in pdf exports (closes #1804)
This commit is contained in:
parent
a6ecbfa732
commit
d4133f0160
@ -90,7 +90,7 @@ ul, ol, div, p {
|
||||
}
|
||||
|
||||
.reveal .slides section {
|
||||
page-break-after: always !important;
|
||||
page-break-after: auto !important;
|
||||
|
||||
visibility: visible !important;
|
||||
display: block !important;
|
||||
@ -139,6 +139,7 @@ ul, ol, div, p {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: auto !important;
|
||||
}
|
||||
|
||||
/* Display slide speaker notes when 'showNotes' is enabled */
|
||||
|
@ -652,7 +652,12 @@
|
||||
// so that no page ever flows onto another
|
||||
var page = document.createElement( 'div' );
|
||||
page.className = 'pdf-page';
|
||||
page.style.height = ( pageHeight * numberOfPages ) + 'px';
|
||||
|
||||
// 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';
|
||||
|
||||
slide.parentNode.insertBefore( page, slide );
|
||||
page.appendChild( slide );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user