• 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: PDFDocument and PDFPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFDocument and PDFPage


  • Subject: Re: PDFDocument and PDFPage
  • From: Antonio Nunes <email@hidden>
  • Date: Mon, 2 Oct 2006 08:32:08 +0100

On 2 Oct 2006, at 08:24, Antonio Nunes wrote:

Now the problem is how to scale the PDFPage so that the created image fit the size of the custom view.

No need to scale the PDFPage object, just use an affine transform when drawing to the custom view to size the image as needed. If you are not familiar with transforms it's easily looked up in the documentation (NSAffineTransform).

Alternatively you can resize the created NSImage object with it's setSize method (and be sure to read up on its setScalesWhenResized method too).


António

-----------------------------------------
Accepting others as they are
brings a wonderful freedom
to your own mind.

--The Peace Formula
-----------------------------------------




_______________________________________________ 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: PDFDocument and PDFPage
      • From: Fabio Mancinelli <email@hidden>
References: 
 >PDFDocument and PDFPage (From: Fabio Mancinelli <email@hidden>)
 >Re: PDFDocument and PDFPage (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: PDFDocument and PDFPage
  • Next by Date: Re: PDFDocument and PDFPage
  • Previous by thread: Re: PDFDocument and PDFPage
  • Next by thread: Re: PDFDocument and PDFPage
  • Index(es):
    • Date
    • Thread