Fix for poppler >= 0.22.0