Currently there is a code in glib-demo to get the quadrilaterals of the text contained in a specific selection. This is needed in order to implement text markup annotations. The following patches implement this function as part of glib api and use it in glib-demo.
Created attachment 105495 [details] [review] poppler-page: get_quadrilaterals_for_area implementation Adding poppler_page_get_quadrilaterals_for_area to glib's api.
Created attachment 105496 [details] [review] glib-demo: uses get_quadrilaterals_for_area Modifies glib-demo such that it uses the new function.
Carlos, could we get this in? I am using evince with highlighting support more often now and I see a lot of issues because we still haven't merge this (think of a highlight that start at the end of a line and start at the beginning of the next one... then, the rectangle will be super big and you basically can't annotate other contents of the two lines containing this highlight)
(In reply to Jose Aliste from comment #3) > Carlos, could we get this in? I am using evince with highlighting support > more often now and I see a lot of issues because we still haven't merge this > (think of a highlight that start at the end of a line and start at the > beginning of the next one... then, the rectangle will be super big and you > basically can't annotate other contents of the two lines containing this > highlight) I don't understand it, get_quads_for_area() in evince is exactly the same code as poppler_page_get_quadrilaterals_for_area(). I'm not opposed to merge this, since that would save all this code in evince, but I don't see how this would change the evince behavior.
you are right... I go confused since I haven't looked into this for a long time.... The patches we need for this I actually submitted them in a new evince bug.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/38.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.