• 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: Douglas Davidson <email@hidden>
  • Date: Tue, 1 Apr 2008 11:57:34 -0700


On Apr 1, 2008, at 11:33 AM, email@hidden wrote:

I am trying to add a pdf image to an NSTextAttachment.

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. Also when the text is copied into another text editor such as TextEdit it is fine on screen but also prints at low resolution. However taking it into Pages seems to work fine and it prints at high resolution. 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.

For now can anybody help me with a way to get a text attachment form a pdf file to draw at high res when printing.

File a bug, but depending on the result you want, you can in your own application set a custom text attachment cell for your attachment with any image you wish, or even use a custom cell subclass to do arbitrary drawing.


Douglas Davidson

_______________________________________________

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: PDF file in NSTextAttachment
  • Next by Date: Re: ERROR: __CFURLCache::StepSQLStatement
  • Previous by thread: PDF file in NSTextAttachment
  • Next by thread: Re: PDF file in NSTextAttachment
  • Index(es):
    • Date
    • Thread