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);
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 (); operation_ set_export_ filename (print, "test.pdf"); operation_ run (print,
GTK_PRINT_ OPERATION_ ACTION_ EXPORT,
NULL, NULL);
// Set up op
gtk_print_
res = gtk_print_