Re: PDFDocument and PDFPage
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