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
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
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
> 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
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 (
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,
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
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.
>>