• 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
Re: PDF file in NSTextAttachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >PDF file in NSTextAttachment (From: email@hidden)

  • Prev by Date: Re: Finding out about new windows.
  • Next by Date: Re: Finding out about new windows.
  • Previous by thread: Re: PDF file in NSTextAttachment
  • Next by thread: KVO question on Tree Controllers
  • Index(es):
    • Date
    • Thread