|
@@ -412,13 +412,18 @@ var Reveal = (function(){
|
|
|
*/
|
|
|
function setupPDF() {
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ var pageAspectRatio = 1.295;
|
|
|
+
|
|
|
|
|
|
- var pageWidth = 1122,
|
|
|
- pageHeight = 867;
|
|
|
+ var pageWidth = config.width * 1.3,
|
|
|
+ pageHeight = Math.round( pageWidth / pageAspectRatio );
|
|
|
|
|
|
|
|
|
- var slideWidth = 960,
|
|
|
- slideHeight = 700;
|
|
|
+ var slideWidth = config.width,
|
|
|
+ slideHeight = config.height;
|
|
|
|
|
|
document.body.classList.add( 'print-pdf' );
|
|
|
document.body.style.width = pageWidth + 'px';
|