Re: Printing Backgrounds With A WebView
Re: Printing Backgrounds With A WebView
- Subject: Re: Printing Backgrounds With A WebView
- From: Michael Stearne <email@hidden>
- Date: Fri, 3 Dec 2004 11:10:05 -0500
Thanks! I am trying to figure out how to do this in Python now.
Michael
On Dec 3, 2004, at 7:56 AM, Steven Kramer wrote:
Op 3-dec-04 om 2:44 heeft Michael Stearne het volgende geschreven:
I am printing a Web View with: NSPrintOperation
printOperationWithView: printInfo:
Where or how do I specify that I would like the background images and
colors to be included in the print. I am doing this without user
interaction so I need to specify it here...
A snipet is below (this is actually python code using the PyObjC
bridge)
And this is actual Cocoa code. I hope you can adjust this to your
Python sample. Note the remark on the third line very carefully!
WebPreferences* prefs = [webView preferences];
[prefs setAutosaves: NO]; // we're meddling with shared prefs...
[prefs setShouldPrintBackgrounds: NO]; // this is undocumented :-/
Regards
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden