• 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
How to set the media box for a CGPDFPageRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set the media box for a CGPDFPageRef?


  • Subject: How to set the media box for a CGPDFPageRef?
  • From: DairyKnight <email@hidden>
  • Date: Wed, 9 Sep 2009 11:07:31 +0800

Hi all,


I'm trying to convert my program with PDFKit to CGPDF to get better
performance. I'm trying to crop a page, with PDFPage I can simply do:
[PDFPage setBounds: forBox:kPDFDisplayMediaBox];

But for CGPDFPageRef, there seems to be only a CGPDFPageGetBoxRect
available. I wonder if I can simply change the mediabox with a function?

Thanks.

Regards,
DairyKnight
_______________________________________________

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

  • Follow-Ups:
    • Re: How to set the media box for a CGPDFPageRef?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: KVO can be unsafe in -init?
  • Next by Date: Re: KVO can be unsafe in -init?
  • Previous by thread: Re: Garbage collection and about windows
  • Next by thread: Re: How to set the media box for a CGPDFPageRef?
  • Index(es):
    • Date
    • Thread