On May 6, 2008, at 5:43 PM, John Calhoun wrote:

On May 6, 2008, at 4:51 PM, Karl von Moller wrote:
Does anyone know whether there is a way to get progress info from a PDF loading into a view - percentage/bytes loaded for example?

No, I can think of no way to do this.

Be careful with threading and PDF... PDFKit classes are ultimately based on CFPDFDocumentRef and CGPDFPageRef — these are not thread safe. You cannot for example search for text in a PDFDocument while rendering a PDFPage from that same PDFDocument. Or even render two different PDFPages from the PDFDocument.

That's an interesting bit of information! Would it be safe to draw the same CGPDFPage of the same CGPDFDocument on the main thread (NSView) and a worker thread (CGBitmapContext) at the same time? I don't think I'm actually doing that, but I'd like to know. Drawing multiple (different instances) of CGPDFDocument to bitmap contexts simultaneously has given me grief with font server deadlocks, but I think that's a separate issue.

thanks,
Adam_______________________________________________

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