Re: Can't create in-memory paginated PDF based on WebView, but I think I'm close
Re: Can't create in-memory paginated PDF based on WebView, but I think I'm close
- Subject: Re: Can't create in-memory paginated PDF based on WebView, but I think I'm close
- From: Mike Zornek <email@hidden>
- Date: Tue, 04 Apr 2006 00:28:22 -0400
On 4/2/06 11:34 AM, "Scott Thompson" <email@hidden> wrote:
> I don't know about CSS and some of the other things. In the WebKit sample
> code (installed in /Developer/Examples/WebKit on my machine) is a project
> called CarbonWeb.
>
> At one point in the past, the CarbonWeb printing code would generate a PDF
> from a paginated web view (in memory using dataWithPDFInsideRect:) and then
> print the resulting PDF . At the time the pagination was done using the
> pagination routines of NSView. It looks like the code has been modified since
> I implemented that so that it is using a NSPrintOperation to do the pagination
> but it should be fairly easy to pick up the PDF pages as they are generated
> and stuff them into a CGPDFDocument in memory.
>
> Scott
Hi Scott. Thanks for your reply.
>From my reading of CarbonWeb (more specifically in
TWebWindow::PrintDialogDone) they are using a NSPrintOperation to simply
"Compute the page range and rectangles" and then later using
dataWithPDFInsideRect to manually grab the pages.
It's that manually grabbing of pages that has me concerned. I could easily
see the webview in my application using print-oriented CSS commands and I
would like to honor them.
If you have anymore suggestions, please let me know. Thanks.
~ Mike
--
Work: http://ClickableBliss.com
Play: http://MikeZornek.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