• 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: Storing PDF selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing PDF selection


  • Subject: Re: Storing PDF selection
  • From: John Calhoun <email@hidden>
  • Date: Fri, 16 May 2008 12:40:26 -0700


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@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


  • Follow-Ups:
    • Re: Storing PDF selection
      • From: Laurent Cerveau <email@hidden>
References: 
 >Storing PDF selection (From: Laurent Cerveau <email@hidden>)

  • Prev by Date: Re: Cocoa: How do I send/receive XML within a HTTP connect?
  • Next by Date: Re: Guidance for Cocoa's steep learning curve
  • Previous by thread: Re: Storing PDF selection
  • Next by thread: Re: Storing PDF selection
  • Index(es):
    • Date
    • Thread