diff rasterize.js @ 32:c4719d1b7633

svg mods
author tzara <rc-web@kiben.net>
date Sun, 19 Aug 2012 21:44:23 +0000
parents e4d2a8eb1450
children 7f0485e0d0ff
line wrap: on
line diff
--- a/rasterize.js	Thu Aug 16 07:17:03 2012 +0000
+++ b/rasterize.js	Sun Aug 19 21:44:23 2012 +0000
@@ -4,7 +4,7 @@
 
 top = system.args[3];
 
-page.clipRect = { top: top, left: 0, width: 1000, height: 400 }
+page.clipRect = { top: top, left: 0, width: 1000, height: 450 }
 
 if (system.args.length < 3 || system.args.length > 5) {
     console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
@@ -15,11 +15,11 @@
     output = system.args[2];
  
 
-    page.viewportSize = { width: 1000, height: 400 };
+    page.viewportSize = { width: 1000, height: 450 };
     if (system.args.length > 4 && system.args[2].substr(-4) === ".pdf") {
         size = system.args[4].split('*');
         page.paperSize = size.length === 2 ? { width: size[0], height: size[1], margin: '0px' }
-                                           : { format: system.args[3], orientation: 'portrait', margin: '1cm' };
+                                           : { format: system.args[3], orientation: 'portrait', margin: '0cm' };
     }
     if (system.args.length > 5) {
         page.zoomFactor = system.args[5];