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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to