>From a GM script I want to setup/change the current browser preferences for >whether the background images and colors should be printed as well or not.
The current settings for e.g. the Firefox browser can be viewed and changed through GUI menu File-->Page setup The preferences can be changed with Javascript (and hence by Greasemonkey) by the following statements: Services.prefs.setBoolPref(print.printer_PDFCreator.print_bgcolor, false); Services.prefs.setBoolPref(print.printer_PDFCreator.print_bgimages, false); and for "shrink-to-fit" option: Services.prefs.setBoolPref(print.printer_PDFCreator.print_shrink_to_fit, true); How ever this does not work. After calling the web page to print the option checks are untouched. How else can I change them from GM script? I use the well known PDFcreator pdf printer to print the web page into a pdf file. Ben -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
