reveal.js/plugin/print-pdf/print-pdf.js in reveal-ck-0.1.2 vs reveal.js/plugin/print-pdf/print-pdf.js in reveal-ck-0.1.3
- old
+ new
@@ -9,21 +9,25 @@
// html2pdf.js
var page = new WebPage();
var system = require( 'system' );
+page.viewportSize = {
+ width: 1024,
+ height: 768
+};
+
page.paperSize = {
- format: 'A4',
+ format: 'letter',
orientation: 'landscape',
margin: {
left: '0',
right: '0',
top: '0',
bottom: '0'
}
};
-page.zoomFactor = 1.5;
var revealFile = system.args[1] || 'index.html?print-pdf';
var slideFile = system.args[2] || 'slides.pdf';
if( slideFile.match( /\.pdf$/gi ) === null ) {
@@ -34,6 +38,7 @@
page.open( revealFile, function( status ) {
console.log( 'Printed succesfully' );
page.render( slideFile );
phantom.exit();
-} );
\ No newline at end of file
+} );
+