PDFDocuments and CGPDFDocuments
PDFDocuments and CGPDFDocuments
- Subject: PDFDocuments and CGPDFDocuments
- From: Kevin Ross <email@hidden>
- Date: Thu, 29 May 2008 18:50:43 -0700
Hi everyone, I seem to have run into a little snag recenlty. I have
an application that manipulates PDF files (scaling, imposition,
transforms...). I am using a PDFView for the interface but performing
all of the transformations in Quartz. I find myself shuttling data
back and forth by using
CGDataProviderCreateWithCFData((CFDataRef)[pdfDocument
dataRepresentation]
before the transformation and
[[[PDFDocument alloc] initWithData:(NSData *)cgPDFAsMutableData]
autorelease]
after to display in the PDFView.
I'm getting bottlenecks for larger files in the calls to [document
dataRepresentation]. I think there has to be either a better way of
doing this or a way to do it where I will not have to convert
(PDFDocument *) to CGPDFDocumentRef every time I perform a
transformation.
Does anyone have any suggestions? Thanks!
- Kevin
_______________________________________________
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