[Gambas-user] pdf component question

richard terry rterry at ...1946...
Wed Aug 4 23:27:32 CEST 2010


On Wednesday 04 August 2010 22:05:45 Benoît Minisini wrote:
> > 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?
> 
Will go back to what I was doing at time of the post and dig-est your email.

Thanks very much.

Richard




More information about the User mailing list