Re: PDF file in NSTextAttachment
Re: PDF file in NSTextAttachment
- Subject: Re: PDF file in NSTextAttachment
- From: Martin Wierschin <email@hidden>
- Date: Tue, 1 Apr 2008 17:31:51 -0700
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
_______________________________________________
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