summaryrefslogtreecommitdiff
blob: 8997261d449d390c7987288a38e7acfcbf6dfa46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Index: src/extension/internal/cairo-renderer-pdf-out.cpp
===================================================================
--- src/extension/internal/cairo-renderer-pdf-out.cpp	(revision 20479)
+++ src/extension/internal/cairo-renderer-pdf-out.cpp	(working copy)
@@ -153,7 +153,7 @@
         g_warning("Parameter <blurToBitmap> might not exist");
     }
 
-    int new_bitmapResolution  = 72;
+    int new_bitmapResolution  = 150;
     try {
         new_bitmapResolution = mod->get_param_int("resolution");
     }
Index: src/extension/internal/cairo-ps-out.cpp
===================================================================
--- src/extension/internal/cairo-ps-out.cpp	(revision 20479)
+++ src/extension/internal/cairo-ps-out.cpp	(working copy)
@@ -151,7 +151,7 @@
         new_blurToBitmap  = mod->get_param_bool("blurToBitmap");
     } catch(...) {}
 
-    int new_bitmapResolution  = 72;
+    int new_bitmapResolution  = 150;
     try {
         new_bitmapResolution = mod->get_param_int("resolution");
     } catch(...) {}
@@ -215,7 +215,7 @@
         new_blurToBitmap  = mod->get_param_bool("blurToBitmap");
     } catch(...) {}
 
-    int new_bitmapResolution  = 72;
+    int new_bitmapResolution  = 150;
     try {
         new_bitmapResolution = mod->get_param_int("resolution");
     } catch(...) {}
Index: src/main.cpp
===================================================================
--- src/main.cpp	(revision 20479)
+++ src/main.cpp	(working copy)
@@ -1398,6 +1398,16 @@
         (*i)->set_param_bool("blurToBitmap", TRUE);
     }
 
+    if (sp_export_dpi) {
+        int dpi = atoi(sp_export_dpi);
+        if ((dpi < 1) || (dpi > 10000)) {
+            g_warning("DPI value %s out of range [1 - 10000]. Nothing exported.", sp_export_dpi);
+            return;
+        }
+        g_print("DPI: %d\n", dpi);
+        (*i)->set_param_int("resolution", dpi);
+    }
+
     (*i)->save(doc, uri);
 }