On 26 May 2010, at 03:01, Matthew Weinstein wrote:

> The PDFSelection class as far as I can tell  basically supports what in 
> Preview.app is  the "text" tool on the toolbar. The selection tool in 
> Preview.app selects an arbitrary rectangle, even if there's no text behind 
> the image.
> 
> So, is there some way of changing the behavior of the given PDFSelection, or 
> do I have to "hand code" this (using the Cropped image example code, for 
> instance)?

The selection tool in Preview just creates a snapshot of the selection. A TIFF 
image. This has nothing to do with PDFSelection. PDFSelections deal only with 
text, so I think they are not rich enough for your purposes. I guess you may 
have to delve deeper; parsing the page streams (you can use Quartz for that), 
and rolling your own selections. Not a quick and easy task.

António

-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.

--Kahlil Gibran
-----------------------------------------------------------



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to