• 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: PDFKit guidance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFKit guidance


  • Subject: Re: PDFKit guidance
  • From: Antonio Nunes <email@hidden>
  • Date: Fri, 20 Jun 2008 13:07:12 +0100

On 20 Jun 2008, at 12:47, Torsten Curdt wrote:

The scaling is done when a PDFPage needs to be drawn, so you need to implement it in your subclass's drawWithBox: method. Use an affine transform set up to serve your needs and apply it to the current graphics context within the drawWithBox: method before drawing the page.

Right. The point though is - I don't really want to display it. So I did not look into the drawing side of things. But I guess I just read up on the Quartz stuff and then get back to you guys (if needed). I assume one could also draw in memory - without displaying. Just didn't know that's the right direction.

Even if you just want to save to file, the drawWithBox: method is going to be called. I.o.w. a PDFDocument is rendered when saved to file. This is what gives you the opportunity to implement such tricks as scaling.


António

-----------------------------------------------------------
What you have inside you expresses itself through both your
choice of words and the level of energy you assign to them.
The more healed, whole and connected you feel inside,
the more healing your words will be.

--Rita Goswami
-----------------------------------------------------------


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: PDFKit guidance (From: Joel Norvell <email@hidden>)
 >Re: PDFKit guidance (From: Torsten Curdt <email@hidden>)
 >Re: PDFKit guidance (From: Antonio Nunes <email@hidden>)
 >Re: PDFKit guidance (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
  • Next by Date: Re: Problems with a Layer backed NSView in a NSScrollView
  • Previous by thread: Re: PDFKit guidance
  • Next by thread: Re: PDFKit guidance
  • Index(es):
    • Date
    • Thread