My question comes down to this: Is it correct to return PDF_ENOUTPUT even if the apply function is called with finish_p=TRUE ? If the answer is yes, then the logic I mentioned above is being considered in the architecture, and the problem has been solved. Otherwise, the bug is still there.
No, currently it is not possible to do that. What happens if you decide to "finish" the encoding with an empty input buffer? How many data would that generate? What is the concrete problem with the flate encoder?
