From: Christiaan H. <cmh...@gm...> - 2008-01-24 21:56:23
|
On 24 Jan 2008, at 10:44 PM, Adam R. Maxwell wrote: > > On Jan 24, 2008, at 1:28 PM, Adam R. Maxwell wrote: > >> >> On Jan 24, 2008, at 1:18 PM, Christiaan Hofman wrote: >> >>> Adam, can you confirm that the PDF at the following link beach balls >>> Skim: >>> <http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf> >> >> Yeah, it sure does. Here's part of the sample; looks like it's >> trying >> to draw a thumbnail. Preview opens it just fine, although the file >> looks pretty weird. Does it beachball on Tiger also? >> >> 787 -[SKMainWindowController objectInThumbnailsAtIndex:] >> 787 -[PDFPage(SKExtensions) >> thumbnailWithSize:forBox:readingBarRect:] >> 787 -[PDFPage(SKExtensions) >> thumbnailWithSize:forBox:shadowBlurRadius:shadowOffset:readingBarRect >> :] >> 787 -[PDFPage drawWithBox:] >> 787 -[PDFPage(PDFPagePrivate) drawWithBox:inContext:] >> 787 CGContextDrawPDFPage > > I really don't understand this. FVPDFIcon draws this thing just fine, > and it uses CGContextDrawPDFPage. If I call > > CGContextDrawPDFPage([[NSGraphicsContext currentContext] > graphicsPort], [self pageRef]); > > in thumbnailWithSize:..., I see the same hang, so it's not something > specific to PDFPage. I would expect that PDFPage does essentially the same thing. Perhaps it's some option in the graphics context? I really wonder how Preview draws its thumbnails, because it does not seem to have as serious problems with some files. Christiaan |