pdf2htmlex: upstream patch to fix build with latest poppler

Fixes #29279.
Closes #29280.