add API to create PopplerDocument from FD
Submitted by Christian Persch (GNOME)
Assigned to poppler-bugs
Created attachment 141154 patch
There is API to create PopplerDocument from a filename, GFile, GInputStream, but not a simple FD. While one could wrap a FD into a GUnixInputStream, that's not as convenient or performant.
The attached simple patch adds the necessary API; and while I was at it, also the corresponding to-fd variants of the save APIs.
The use case for this is FDs pointing to an already unlinked tempfile (which means that one cannot use the open-by-filename APIs).
Patch 141154, "patch":