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

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


  • Follow-Ups:
    • Re: PDFDocuments and CGPDFDocuments
      • From: John Calhoun <email@hidden>
  • Prev by Date: Re: CGContextSetRGBFillColor() off by one?
  • Next by Date: Re: Re: newbie question: menu item appears when app runs, but is not visible in NIB
  • Previous by thread: Re: filtering a list like address book
  • Next by thread: Re: PDFDocuments and CGPDFDocuments
  • Index(es):
    • Date
    • Thread