Backport: Fix build against Poppler 25.06
Accommodate for the private API change, whereby an array of pointers has been replaced with a vector of unique_ptr.
Moreover, fix Poppler private header includes by adding the missing path prefix poppler/ which fixes a build error against a non-system installation of libpoppler.
Backported from !7261 (merged)
Fixes #5836 (closed)