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

Re: PDFDocuments and CGPDFDocuments


  • Subject: Re: PDFDocuments and CGPDFDocuments
  • From: John Calhoun <email@hidden>
  • Date: Mon, 2 Jun 2008 11:10:16 -0700

On May 31, 2008, at 3:43 PM, Kevin Ross wrote:
My ultimate goal is an application that is like a printer's PDF workflow, that will allow page manipulations like resizing / cropping / adding bleed information, and imposing multiple pages onto one with crop marks and the like. After researching it seems like some of the functions (imposition with crop marks, page cropping/scaling with/without preserving aspects, etc) are best suited for quartz, while the rest (page reordering/inserting, rotating, etc) have Cocoa APIs.


Well, FWIW, Apple's Preview is cropping in PDF Kit ... basically you call -[setBoundsForBox:] on the PDFPage in question.

Additionally you should probably look into subclassing PDFPage. Within that domain you can overlay crop marks, apply additional transforms, etc.

See PDFCalendar sample code for a PDFPage subclassing example.

John Calhoun—_______________________________________________

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


  • Prev by Date: Re: Main window disappears. Sometimes.
  • Next by Date: Re: core data: awakeFromFetch, awakeFromInsert, didTurnIntoFault
  • Previous by thread: Re: Converting string to double: NSString or NSScanner
  • Next by thread: Apple Remote and exclusivity
  • Index(es):
    • Date
    • Thread