Re: Creating a PDFSelection...
Re: Creating a PDFSelection...
- Subject: Re: Creating a PDFSelection...
- From: Matthew Weinstein <email@hidden>
- Date: Tue, 25 May 2010 19:01:41 -0700
António, that's exactly what I needed. But it leads to my next question.
The PDFSelection class as far as I can tell basically supports what in Preview.app is the "text" tool on the toolbar. The selection tool in Preview.app selects an arbitrary rectangle, even if there's no text behind the image.
So, is there some way of changing the behavior of the given PDFSelection, or do I have to "hand code" this (using the Cropped image example code, for instance)?
On May 25, 2010, at 11:05 AM, Antonio Nunes wrote:
> On 25 May 2010, at 18:32, Matthew Weinstein wrote:
>
>> Thanks for all the help! Onto the next problem... Users need to be able to select sections of a pdfView, and I need to be able to save and analyze the selections (e.g., do they overlap). I also need to be able to restore the selections later. So the question is, can I use PDFSelection to do this. I can't seem to find a way to say create a selection with this NSRect (or part of the string). Is there a way to do this? Is there an alternative?
>
> From the PDFPage class reference:
> - (PDFSelection *)selectionForRect:(NSRect)rect
> - (PDFSelection *)selectionForRange:(NSRange)range
> etc.
>
> António
>
> ----------------------------------------------------
> There is nothing as strong as real gentleness, and
> there is nothing as gentle as real strength.
> ----------------------------------------------------
>
>
>
>
_______________________________________________
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