[Okular-devel] [okular] [Bug 328029] Have highlighted text show in xml file in docdata directory
Fabio D'Urso
fabiodurso at hotmail.it
Wed Nov 27 20:02:54 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=328029
Fabio D'Urso <fabiodurso at hotmail.it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fabiodurso at hotmail.it
--- Comment #5 from Fabio D'Urso <fabiodurso at hotmail.it> ---
You can read the coordinates of the highlighted rectangles from the xml file,
and use them to extract the corresponding text from the PDF file. I think you
can use okular's own API to do that, have a look at Page::text(RegularAreaRect
*)
(http://api.kde.org/4.x-api/kdegraphics-apidocs/okular/html/classOkular_1_1Page.html#a11ab0f2abe5c1e760c046a33fd5393f3).
You can also directly obtain the list of the annotations using okular's API
instead of parsing the xml data.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list