On 11 Mar 2014, at 18:09, Uli Kusterer <witness.of.teacht...@gmx.net> wrote:
> On 11 Mar 2014, at 17:12, jonat...@mugginsoft.com wrote: >> There is WebView -drawsBackground but this has no disernable effect. > > That property is for the case where you want a transparent webview on screen. > >> Thinking again about this. >> Perhaps I need to use an NSPrintOperation instead. > > Yeah, that's what I would have suggested. ISTR that PDF generation generally > goes through the printing mechanism, so if you want to modify some options > there, that's probably the way to go. The WebPreferences API has the required property: WebPreferences *webPref = [[WebPreferences alloc] initWithIdentifier:@“Foo"]; [webPref setShouldPrintBackgrounds:YES]; [self.webView setPreferences:webPref]; It appears that using an NSPrintOperation is only a necessity for PDF generation if the output scaling and pagination has to be modified. Jonathan _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com