Hi!
this is my first post on this list. I am writing a gtk application that is
using gtkhtml3 and prints a html page.
I try to print a html page using gtkhtml3's function gtk_html_print.
I want it to be printed in landscape orientation (rotated by 90 degrees)
so the page looks like that
+--------------+
| text here |
| |
| |
+--------------+
I use this code but that does not work, the page is printed in portrait
orientation, just the text is moved down to the half of a paper.
GnomePrintContext *pc;
GnomePrintConfig *cfg;
cfg = gnome_print_config_default ();
if (!gnome_print_config_set (cfg, GNOME_PRINT_KEY_ORIENTATION,
"R90"))
log ("could not set config");
gnome_print_config_set (cfg, "Printer", "PDF");
gnome_print_config_set (cfg, GNOME_PRINT_KEY_OUTPUT_FILENAME,
"/tmp/page.pdf");
pc = gnome_print_context_new (cfg);
gtk_html_print ((GtkHTML*) view, pc);
I use libgnomeprint 2.10.3
Anyone has a clue why this code does not work as expected?
regards
hs
_______________________________________________
gnome-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devel-list