Fix build with poppler 22.x

I have uploaded these changes to Ubuntu since they're doing the poppler 22.02 transition now.

cc/ @mattia

Merge request reports

Loading