• 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: Creating a PDFSelection...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a PDFSelection...


  • Subject: Re: Creating a PDFSelection...
  • From: Antonio Nunes <email@hidden>
  • Date: Wed, 26 May 2010 05:23:14 +0100

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 (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: 
 >Creating a PDFSelection... (From: Matthew Weinstein <email@hidden>)
 >Re: Creating a PDFSelection... (From: Matthew Weinstein <email@hidden>)

  • Prev by Date: Re: IKImageView Question
  • Next by Date: Re: IKImageView Question
  • Previous by thread: Re: Creating a PDFSelection...
  • Next by thread: Re: Creating a PDFSelection...
  • Index(es):
    • Date
    • Thread