Re: webkit -> print
Re: webkit -> print
- Subject: Re: webkit -> print
- From: Sherm Pendley <email@hidden>
- Date: Mon, 17 Apr 2006 17:57:18 -0400
On Apr 17, 2006, at 5:13 PM, Keith Ray wrote:
If some javascript on a web-page is trying to print the page, what
would I have to do with cocoa and webkit to enable that (so it
actually can print)?
What makes you think you need JavaScript to print? Just hit cmd-p, or
choose File/Print from the menu. If you want the printed page to
appear differently than the onscreen version, just use a print-
specific style sheet.
I have no control over the content of the web-page -- but it is able
to print itself on Internet Explorer on Windows.
1. Take a look at the web page source to see what kind of proprietary
MS-only JavaScript hack it's using.
2. Create a Cocoa webkit plug-in that implements that hack.
Have a look at:
<http://developer.apple.com/documentation/InternetWeb/Conceptual/
WebKit_PluginProgTopic/index.html>
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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