Fix build with poppler 0.71
Port away from removed API
Differential Revision: https://phabricator.kde.org/D16607