← Back to team overview

simple-scan-team team mailing list archive

Re: [Question #273400]: Save file in PDF format

 

Question #273400 on Simple Scan changed:
https://answers.launchpad.net/simple-scan/+question/273400

Rolf proposed the following answer:
I was able to modify the code to make the default .jpg. Here's the patch
against the most recent master.

$ git diff
diff --git a/src/app-window.vala b/src/app-window.vala
index 94aacd8..551f71c 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -307,7 +307,7 @@ public class AppWindow : Gtk.ApplicationWindow
         else {
             save_dialog.set_current_folder (directory);
             /* Default filename to use when saving document */
-            save_dialog.set_current_name (_("Scanned Document.pdf"));
+            save_dialog.set_current_name (_("Scanned Document.jpg"));
         }
 
         /* Filter to only show images by default */
@@ -331,12 +331,6 @@ public class AppWindow : Gtk.ApplicationWindow
         Gtk.TreeIter iter;
         file_type_store.append (out iter);
         file_type_store.set (iter,
-                             /* Save dialog: Label for saving in PDF format */
-                             0, _("PDF (multi-page document)"),
-                             1, ".pdf",
-                             -1);
-        file_type_store.append (out iter);
-        file_type_store.set (iter,
                              /* Save dialog: Label for saving in JPEG format */
                              0, _("JPEG (compressed)"),
                              1, ".jpg",
@@ -347,6 +341,12 @@ public class AppWindow : Gtk.ApplicationWindow
                              0, _("PNG (lossless)"),
                              1, ".png",
                              -1);
+        file_type_store.append (out iter);
+        file_type_store.set (iter,
+                             /* Save dialog: Label for saving in PDF format */
+                             0, _("PDF (multi-page document)"),
+                             1, ".pdf",
+                             -1);
 #if HAVE_WEBP
         file_type_store.append (out iter);
         file_type_store.set (iter,

-- 
You received this question notification because your team Simple Scan
Development Team is an answer contact for Simple Scan.