[Okular-devel] getting the links in a pdf document

Albert Astals Cid aacid at kde.org
Mon Dec 7 21:04:52 CET 2009


A Dilluns 07 Desembre 2009 09:09:54, Wilbert Berendsen va escriure:
> Hi,
> 
> I use an embedded okular part in my application, and I would like to get
>  the list of links for each page and their coordinates (so that I for
>  example could highlight a link, or have Okular scroll to the place a link
>  is defined).
> 
> I am mainly concerned with source links (textedit://).
> 
> I know that it is possible using libpopplerqt4 to render pages and get the
> links. But it is somehow possible (via QMetaObject or anything) to get at
>  the links in a document displayed by the okular part, to know where they
>  are displayed, to scoll to a link or get a signal on hover/click etc.? Or
>  are there plans in that direction?

No, there isn't any way to do that nor there isn't plan to implement it since 
we are already very understaffed and basically can't even cope with incoming 
bugs to think on adding new features.

Though if you want to work on it (Should not be much work) we can talk about 
the general API, you do the work, we do the review and it can probably go in.

> 
> Otherwise I might need to implement my own PDF rendering widget (based on
> libpopplerqt4).

This would be another solution but it's quite a lot of work on having a non-
simple rendering widget (scrolling, zooming, etc) working so i think the first 
solution is better for everyone.

Albert

> 
> with may regards,
> Wilbert Berendsen
> 


More information about the Okular-devel mailing list