1c499d
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
1c499d
index 7b81732..2352487 100644
1c499d
--- a/gedit/gedit-tab.c
1c499d
+++ b/gedit/gedit-tab.c
1c499d
@@ -2262,6 +2262,8 @@ get_print_settings (GeditTab *tab)
1c499d
 {
1c499d
 	gpointer data;
1c499d
 	GeditDocument *doc;
1c499d
+	GtkPrintSettings *settings;
1c499d
+	gchar *uri, *name;
1c499d
 
1c499d
 	doc = gedit_tab_get_document (tab);
1c499d
 
1c499d
@@ -2270,12 +2272,24 @@ get_print_settings (GeditTab *tab)
1c499d
 
1c499d
 	if (data == NULL)
1c499d
 	{
1c499d
-		return _gedit_app_get_default_print_settings (gedit_app_get_default());
1c499d
+		settings = _gedit_app_get_default_print_settings (gedit_app_get_default());
1c499d
 	}
1c499d
 	else
1c499d
 	{
1c499d
-		return gtk_print_settings_copy (GTK_PRINT_SETTINGS (data));
1c499d
+		settings = gtk_print_settings_copy (GTK_PRINT_SETTINGS (data));
1c499d
 	}
1c499d
+
1c499d
+	name = gedit_document_get_short_name_for_display (doc);
1c499d
+	uri = g_strconcat ("file://",
1c499d
+			   g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS),
1c499d
+			   "/", name, ".pdf", NULL);
1c499d
+
1c499d
+	gtk_print_settings_set (settings, GTK_PRINT_SETTINGS_OUTPUT_URI, uri);
1c499d
+
1c499d
+	g_free (uri);
1c499d
+	g_free (name);
1c499d
+
1c499d
+	return settings;
1c499d
 }
1c499d
 
1c499d
 /* FIXME: show the message area only if the operation will be "long" */