Skip navigation.
 
mlRe: Storing PDF selection
FROM : John Calhoun
DATE : Fri May 16 21:40:26 2008

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 (<email_removed>)

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/<email_removed>

This email sent to <email_removed>

Related mailsAuthorDate
mlStoring PDF selection Laurent Cerveau May 16, 08:43
mlRe: Storing PDF selection Antonio Nunes May 16, 09:11
mlRe: Storing PDF selection John Calhoun May 16, 21:40
mlRe: Storing PDF selection Laurent Cerveau May 17, 15:13
mlRe: Storing PDF selection Laurent Cerveau May 17, 15:13
mlRe: Storing PDF selection Antonio Nunes May 17, 18:57
mlRe: Storing PDF selection Laurent Cerveau May 17, 21:10