For which scope does the file access to `FPDFImageObj_LoadJpegFile` have to be kept alive? Presumably until the PDF is saved/closed?
The thing is, when adding many images to a PDF, we want neither load them all into memory as with `FPDFImageObj_LoadJpegFileInline`, nor have a high number of file handles open at the same time, given OS limits. So ideally, we'd like to open the files only for the time they are needed while saving, and then close again.
Is this possible with the current state of the API?
Is the reading process linear/predictable, so we could open the file on initial read, and close once the end is reached or something?