Re: Fake NSView dimensions for fake printing
Re: Fake NSView dimensions for fake printing
- Subject: Re: Fake NSView dimensions for fake printing
- From: Scott Garner <email@hidden>
- Date: Tue, 28 Jun 2005 12:59:56 -0500
On Jun 28, 2005, at 12:42, Joshua Scott Emmons wrote:
Why not just make your PDF using the Cocoa printing architecture
instead of -dataWithPDFInsideRect:?
Well, I am using Cocoa printing for paginated PDFs, but I'm also
offering the option for non-paginated PDFs so the user can get one
giant document from a given web page if desired. (This is sometimes
preferable for a number of reasons, especially since WebKit as it
stands now doesn't handle all of the css page-break options as it
should.)
Using dataWithPDFInsideRect to avoid pagination seemed like the
easiest approach unless there's some way to tell the printing
architecture to not vertically paginate.
For the time being I suppose I'll go with the dpi*inches to get a
pixel width. It may not be technically correct, but after testing it
seems to yield reasonable results.
Thanks for the input.
Scott
_______________________________________________
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