On 11 Mar 2014, at 17:37, Matthew Weinstein <[email protected]> wrote:

> Trying to figure out how to get a pages selection range (offset and length) 
> for a pdfselection. I've been using the bounding rect, but if I have a 
> selection that is a sentence that crosses lines and terminates half way in 
> the last line, the rect includes everything to the edge (of course). But if I 
> just want the offset and length, how do I extract that?

Matthew, ask the PDFSelection for its “selectionsByLine”. You should get two 
selections. One for the first line, one for the second. Examine both to exact 
the data you need.

- António


-----------------------------------------
Perfume is the forgiveness
that the trampled flower casts
upon the heel that crushes it.
-----------------------------------------




_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to