webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:59:35 +0000 (15:59 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:59:35 +0000 (15:59 +0800)
webkitpdf.vala

index 06cd645..bc45365 100644 (file)
@@ -42,6 +42,13 @@ public class webkitpdf {
                        if (webkitpdf.opt_target_png == null && webkitpdf.opt_target_pdf == null) {
                 throw new OptionError.BAD_VALUE("missing pdf or png filename");
             }
+            
+            if (webkitpdf.opt_target_pdf != null) {
+                       print("got pdf\n");
+               }
+            if (webkitpdf.opt_target_png != null) {
+                       print("got png\n");
+               }
             if (webkitpdf.opt_target_pdf == null && webkitpdf.opt_target_png != null) {
                 throw new OptionError.BAD_VALUE("missing pdf file path");
             }