Skip navigation.
 
mlRe: Storing PDF selection
FROM : Antonio Nunes
DATE : Fri May 16 09:11:29 2008

On May 16, 2008, at 7:43 AM, 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


You ask the page for a selection for the range you provide, and assign 
that to PDFView's current selection:
           [somePDFView setCurrentSelection:[yourRememberedPage 
selectionForRange:yourRememberedRange]];

Selections can span multiple pages of course, so covering that 
requires a bit more work, but it's not difficult.

António


-----------------------------------------------
Touch is a language without words
-----------------------------------------------

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