• 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 12:28:14 +0100

On 2 Oct 2006, at 11:48, Fabio Mancinelli wrote:

I haven't found in the PDFPage class any instance method that could be used to draw somewhere the page. There is this drawWithBox method but it doesn't take any "destination".

Yes, that's what you need to have the page drawn. There is indeed no way of specifying coordinates for where to draw, hence the need to use an affine transform to transform the graphics context's transformation matrix so that the PDFPage appears at the right place and at the desired size. I suggest you read up on the use of coordinate systems and transforms.


This is a good starting point:
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaDrawingGuide/Introduction/chapter_1_section_1.html


Particularly:
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaDrawingGuide/Transforms/chapter_4_section_1.html#//apple_ref/doc/ uid/TP40003290-CH204-BCIDJJBI


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
-----------------------------------------------------------


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