Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread jonat...@mugginsoft.com
On 11 Mar 2014, at 18:09, Uli Kusterer 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. >>

Re: Draw image within a NSBezierPath with no border

2014-03-11 Thread Leonardo
Hi Kyle, thank you for your suggestions, but the clearColor doesn't cast shadow. I tried the transparency layers too, but when I export the view to a PDF using dataWithPDFInsideRect, I get no compression (specified in the quartzFilter). Instead, If I do not use the transparency layers, I properly g

Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread Uli Kusterer
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,

Getting a selection range from a pdfselection...

2014-03-11 Thread Matthew Weinstein
Dear cocoa-devs, Trying to figure out how to get a pages selection range (offset and length) for a pdfselection. I've been using the bounding rect, but if I have a selection that is a sentence that crosses lines and terminates half way in the last line, the rect includes everything to the edge (

Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread jonat...@mugginsoft.com
> On 11 Mar 2014, at 16:03, Jens Alfke wrote: > >> >> On Mar 11, 2014, at 8:55 AM, jonat...@mugginsoft.com wrote: >> >>> However, the pdf rendering is missing some simple div background colouring >>> (like alternating backgrounds on table rows). >> >> When I print from Safari there’s a check

Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread jonat...@mugginsoft.com
On 11 Mar 2014, at 16:03, Jens Alfke wrote: > > On Mar 11, 2014, at 8:55 AM, jonat...@mugginsoft.com wrote: > >> However, the pdf rendering is missing some simple div background colouring >> (like alternating backgrounds on table rows). > > When I print from Safari there’s a checkbox to hide

Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread Jens Alfke
On Mar 11, 2014, at 8:55 AM, jonat...@mugginsoft.com wrote: > However, the pdf rendering is missing some simple div background colouring > (like alternating backgrounds on table rows). When I print from Safari there’s a checkbox to hide backgrounds (to save ink). Maybe that’s a WebView option

WebView pdf representation - div background colours AWOL

2014-03-11 Thread jonat...@mugginsoft.com
I create local mustache template driven HTML content and display it in my OS X 10.9 app using WebView. I get the WebView PDF representation like so: NSView *webDocumentView = [[[self.webView mainFrame] frameView] documentView]; NSData *pdfData = [webDocumentView dataWithPDFInsideRect:webDocume