Re: Searching for text in PDF files is wrong

2018-12-19 Thread Osmo Antero via gtk-app-devel-list
Re-hi, I think the mark_text(...) function can be simplified. Check also open_page(...). Ref: https://pastebin.com/52dU2kv8 Feliz Natal Moma Osmo Antero escreveu no dia quarta, 19/12/2018 à(s) 20:08: > Hello, > > This code might work even you resize the window. > Please see:

Re: Searching for text in PDF files is wrong

2018-12-19 Thread Osmo Antero via gtk-app-devel-list
Hello, This code might work even you resize the window. Please see: https://pastebin.com/GJMPwLU3 It draws the selected text in the "draw" event. ps. I hard coded the PDF_DOC and FIND_TEXT values. Feliz Natal, moma, Portugal Marius Gedminas escreveu no dia segunda, 3/12/2018 à(s) 17:12: >

Re: Searching for text in PDF files is wrong

2018-12-03 Thread Marius Gedminas
On Fri, Nov 30, 2018 at 09:56:12PM +0100, Радомир Хаџић via gtk-app-devel-list wrote: > I use poppler_page_find_text() to find text in PDF files. This returns > GList of pointers to PopplerRectangles. Then I use > poppler_page_render_selection() to mark the found text. > > What is wrong is that

Re: Searching for text in PDF files is wrong

2018-12-03 Thread Emmanuele Bassi via gtk-app-devel-list
Hi; this list is for the development of applications with GTK; your question relates to Poppler, so you should ask on a Poppler-related mailing list or developers forum, e.g. https://lists.freedesktop.org/mailman/listinfo/poppler Ciao, Emmanuele. On Fri, 30 Nov 2018 at 20:56, Радомир Хаџић via

Searching for text in PDF files is wrong

2018-11-30 Thread Радомир Хаџић via gtk-app-devel-list
Hi. I use poppler_page_find_text() to find text in PDF files. This returns GList of pointers to PopplerRectangles. Then I use poppler_page_render_selection() to mark the found text. What is wrong is that PopplerRectangles returned by poppler_page_find_text() are incompatible with those that