Use poppler_document_new_from_gfile() instead.
Remove the build time check for poppler_document_new_from_fd()
Use poppler_document_new_from_file()
You can also use your local clone with git send-email.