Re: PDFDocuments and CGPDFDocuments
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