projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789a196
)
update phanomjs pdf printing to work with latest pdf css
author
Hakim El Hattab
<hakim.elhattab@gmail.com>
Wed, 19 Jun 2013 01:55:01 +0000
(21:55 -0400)
committer
Hakim El Hattab
<hakim.elhattab@gmail.com>
Wed, 19 Jun 2013 01:55:23 +0000
(21:55 -0400)
plugin/print-pdf/print-pdf.js
patch
|
blob
|
history
diff --git
a/plugin/print-pdf/print-pdf.js
b/plugin/print-pdf/print-pdf.js
index 2b1d69165fdd590754bd3c4c9db6d1a37be7e779..6b6cad66efee2bf5922c3a33e0b11d5f41f75967 100644
(file)
--- a/
plugin/print-pdf/print-pdf.js
+++ b/
plugin/print-pdf/print-pdf.js
@@
-11,8
+11,13
@@
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',
@@
-21,7
+26,6
@@
page.paperSize = {
bottom: '0'
}
};
-page.zoomFactor = 1.5;
var revealFile = system.args[1] || 'index.html?print-pdf';
var slideFile = system.args[2] || 'slides.pdf';
@@
-36,4
+40,5
@@
page.open( revealFile, function( status ) {
console.log( 'Printed succesfully' );
page.render( slideFile );
phantom.exit();
-} );
\ No newline at end of file
+} );
+