• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing Backgrounds With A WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Printing Backgrounds With A WebView (From: Michael Stearne <email@hidden>)
 >Re: Printing Backgrounds With A WebView (From: Steven Kramer <email@hidden>)

  • Prev by Date: Re: compositing views into one window
  • Next by Date: Re: compositing views into one window
  • Previous by thread: Re: Printing Backgrounds With A WebView
  • Next by thread: Need help with initializing Menu check boxes
  • Index(es):
    • Date
    • Thread