• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fake NSView dimensions for fake printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Fake NSView dimensions for fake printing
      • From: Joshua Scott Emmons <email@hidden>
References: 
 >Fake NSView dimensions for fake printing (From: Scott Garner <email@hidden>)

  • Prev by Date: Re: Spotlight bindings example?
  • Next by Date: keyAESearchText and Document-based applications
  • Previous by thread: Fake NSView dimensions for fake printing
  • Next by thread: Re: Fake NSView dimensions for fake printing
  • Index(es):
    • Date
    • Thread