Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't create in-memory paginated PDF based on WebView, but I think I'm close



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Can't create in-memory paginated PDF based on WebView, but I think I'm close (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.