FROM : Douglas Davidson
DATE : Tue Apr 01 20:57:34 2008
On Apr 1, 2008, at 11:33 AM, fred.<email_removed> 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
DATE : Tue Apr 01 20:57:34 2008
On Apr 1, 2008, at 11:33 AM, fred.<email_removed> 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
| Related mails | Author | Date |
|---|---|---|
| fred.redcliffe | Apr 1, 20:33 | |
| Douglas Davidson | Apr 1, 20:57 | |
| Martin Wierschin | Apr 2, 02:31 |






Cocoa mail archive

