[Gambas-user] pdf component question
Benoît Minisini
gambas at ...1...
Wed Aug 4 14:05:45 CEST 2010
> I wondered where the full documentation is for this compoent.
>
> The pdf viewer will do things like hightlight test you want to search for,
> but I wondered if there is a machanism of 'going to' the first occurrence.
>
> There is a couple of goto properties, but the mini-help which come up but
> no explanation of how to use them.
>
> Regards
>
> Richard
>
Here is what I could guess by reading the source code of the component:
PdfDocument[Page].Find() will search all occurences of a text into the
specified page.
Then: PdfDocument[Page].Result.Count returns the number of matches, and
PdfDocument[Page].Result[Index] a virtual object that represents the rectangle
surrounding the text in the page.
Maybe if Index = 0, you have the first match?
Is it what you are looking for?
--
Benoît Minisini
More information about the User
mailing list