Skip navigation.
 
mlRe: PDF file in NSTextAttachment
FROM : Martin Wierschin
DATE : Wed Apr 02 02:31:51 2008

> I create a file wrapper from a pdf image on disk and insert it into 
> my textstorage, with no problem, which draws fine on screen but 
> then when I want to print the document it draws the image at low 
> resolution.


This is a bug that was introduced in Leopard that affects PDF and EPS 
images. I don't believe there's any way to coerce the attachment (or 
the NSImage even) to not use the cached (low quality) image data. You 
have to tell the NSImageRep draw itself directly to avoid the issue.

> Experimenting, I have found that Pages does not at all behave like 
> a standard NSTextView which is a bit of a pain as it is difficult 
> to create consistency between different applications, but that is 
> another story.


Pages uses WebKit, not NSTextView and friends.

~Martin

Related mailsAuthorDate
mlPDF file in NSTextAttachment fred.redcliffe Apr 1, 20:33
mlRe: PDF file in NSTextAttachment Douglas Davidson Apr 1, 20:57
mlRe: PDF file in NSTextAttachment Martin Wierschin Apr 2, 02:31