TIFF from PDF
TIFF from PDF
- Subject: TIFF from PDF
- From: Renaud Boisjoly <email@hidden>
- Date: Mon, 27 May 2002 14:08:45 -0400
Hi all. Sorry if this seems simplistic to most, I'm still quite a newbie
I'm trying to take some RTFD content in an NSTExtView and getting a TIFF
representation out if it... so I can paste in a carbon app. I don't want
the text, I just want to click on an image which was pasted there (say
from a screenshot) and Copy and Paste.
So... what I'm doing at this point is the following.
In my subclass of NSTextView, I'm doing the following:
pdfData = [self dataWithPDFInsideRect:theRect];
myImage = [[NSImage alloc] initWith
Data:pdfData];
[pb set
Data:[myImage TIFFRepresentation] forType:NSTIFFPboardType];
where pdfData is an NSData, myImage is an NSImage and pb is the
pasteboard
All I get is a black shape of the right size...
I'm sure this is obvious to you all, but I need some guidance...
thanks for your help!
Renaud
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.