Fix for poppler backend

This is a workaround for #89. It works by getting every piece of text by first
obtaining the layout rectangles and then getting the glyph for every rectangle.
Some day we can be more efficient, but for now this works well enough