webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Tue, 16 Aug 2016 05:42:05 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 16 Aug 2016 05:42:05 +0000 (13:42 +0800)
webkitpdf.vala

index 3ab6cfe..3a4534e 100644 (file)
@@ -15,7 +15,8 @@ public class webkitpdf {
        public static string[] opt_inject_js;
        const OptionEntry[] options = {
                
-                       
+                       { "width", 0, 0, OptionArg.STRING, ref opt_url, "Width (default 500)", null },                  
+                       { "height", 0, 0, OptionArg.STRING, ref opt_url, "Height (PNG only) (default to expand to fit)", null },                                                
                        { "url", 0, 0, OptionArg.STRING, ref opt_url, "Url to grab", null },
                        { "delay", 0, 0, OptionArg.INT, ref opt_delay, "Delay before snapshot in seconds", null },
                        { "png", 0, 0, OptionArg.STRING, ref opt_target_png, "File to write (PNG)", null },