This is not the same patch coming from upstream!? Upstream added some #if guards to compile both with poppler>= 22.9 and with older versions as well. I haven't checked if the 22.9 variant also works with older poppler versions (perhaps it does, even), but I don't understand why you would rewrite this part of the patch, even more without mentioning it in the patch description?…
What happened is that I wrote it on my own, then realized someone had probably already done it, confirmed it, verified that they were "essentially" equal, so I had better submit it crediting the original author. No idea how I came to submit only the header and not the whole contents...