Fix extraction of text in some files

Bug #78145
Merge remote-tracking branch 'origin/poppler-0.26'