Code

enable text-to-path command line control for pdf export
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 1 May 2008 16:12:39 +0000 (16:12 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 1 May 2008 16:12:39 +0000 (16:12 +0000)
src/main.cpp

index eafa07c539e8657495b2999d0d4f3e6d1036e94f..46d3082f14b12ecbeae6602cb6d1ff91046832c5 100644 (file)
@@ -1263,6 +1263,12 @@ static void do_export_pdf(SPDocument* doc, gchar const* uri, char const* mime)
         (*i)->set_param_bool ("exportCanvas", FALSE);
     }
 
+    if (sp_export_text_to_path) {
+        (*i)->set_param_bool("textToPath", TRUE);
+    } else {
+        (*i)->set_param_bool("textToPath", FALSE);
+    }
+
     (*i)->save(doc, uri);
 }