On May 15, 2008, at 11:43 PM, Laurent Cerveau wrote:
If I have a PDF View , select part of it and get the currentSelection, showing it tells something like
Page index = 2, Range = (0, 21]

However I do not see where I could get the range of the PDFSelection and later recreate a selection with this value

Not the range, but you can get the bounds for each page the selection covers: -[PDFSelection boundsForPage: (PDFPage *) page].

To "unflatten" you can call [PDFPage selectionForRect:] for each partial selection you saved off. Selections can be added then [PDFSelection addSelection: (PDFSelection *) selection].

Yeah, a little hacky....

John Calhoun—_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to