BrowserView.js
authorChris <chris@roojs.com>
Tue, 17 Sep 2013 05:54:25 +0000 (13:54 +0800)
committerChris <chris@roojs.com>
Tue, 17 Sep 2013 05:54:25 +0000 (13:54 +0800)
BrowserView.js

index 8aae655..07e0285 100644 (file)
@@ -135,7 +135,10 @@ BrowserView = new GType({
             tab.get_toolbar().set_progress(0);
             
             
-            
+            var mf = this.get_main_frame();
+            var p = new Gtk.PrintOperation({ export_filename : '/home/chris/test_pdf/test.pdf' });
+
+            print(mf.print_full(p, Gtk.PrintOperationAction.EXPORT));
             
             _t.add_inject(true);