[poppler] How to read textbox positions?

Albert Astals Cid aacid at kde.org
Wed Dec 27 22:25:19 UTC 2017


El dimecres, 27 de desembre de 2017, a les 12:26:25 CET, Jeroen Ooms va 
escriure:
> Is there a method in poppler-cpp to extract text from a pdf document,
> including the position of each text box? Currently we use page->text()
> with page::physical_layout which gives all text per page, but I need
> more detailed information about each text box per page.

You want to code the variant of qt5 frontend Poppler::Page::textList() for cpp 
frontend, it shouldn't be that hard getting inspiration (i.e. almost-copying) 
the code, do you have time for it?

Cheers,
  Albert

> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler




More information about the poppler mailing list