Comment 16 for bug 164298

Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote : Re: Print to file should say "Export to PDF" instead of "Print to PDF"

The right package would be the individual application that we would like to have an "Export to PDF..." (or "Export...") in, such as gedit, eog, etc.

The code is rather simple, from http://www.gnome.org/~alexl/presentations/guadec2006-printing.pdf :

op = gtk_print_operation_new ();
// Set up op
gtk_print_operation_set_export_filename (print, "test.pdf");
res = gtk_print_operation_run (print,
               GTK_PRINT_OPERATION_ACTION_EXPORT,
               NULL, NULL);