webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 03:27:34 +0000 (11:27 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 03:27:34 +0000 (11:27 +0800)
webkitpdf.vala

index 53a8528..0804dd8 100644 (file)
@@ -31,8 +31,11 @@ public class webkitpdf {
             if (webkitpdf.opt_url == null) {
                 throw new OptionError.BAD_VALUE("missing url");
             }
-                       if (webkitpdf.opt_target_png == null) {
-                throw new OptionError.BAD_VALUE("missing png");
+                       //if (webkitpdf.opt_target_png == null) {
+            //    throw new OptionError.BAD_VALUE("missing png"  file path);
+            //}
+            if (webkitpdf.opt_target_pdf == null) {
+                throw new OptionError.BAD_VALUE("missing pdf file path");
             }
             
                } catch (OptionError e) {