Summary: | Provide method for devices to write data out via the API stdio callbacks | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Chris Liddell (chrisl) <chris.liddell> |
Component: | Graphics Library | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | thomas.loimer |
Priority: | P4 | ||
Version: | master | ||
Hardware: | All | ||
OS: | All | ||
Customer: | Word Size: | Not specified |
Description
Chris Liddell (chrisl)
2014-01-31 10:29:07 UTC
The documentation "API.htm" should contain a hint, that the callback handlers set with gsapi_set_stdio() are not obeyed if a device (-sDEVICE=..) is given. Would have saved me, and probably other users, some time. (In reply to Thomas Loimer from comment #1) > The documentation "API.htm" should contain a hint, that the callback > handlers set with gsapi_set_stdio() are not obeyed if a device (-sDEVICE=..) > is given. > > Would have saved me, and probably other users, some time. I've added a note to that effect: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=6a46e31d5005 The hold-up implementing a solution to this is down to finding a nice way to preserve the current bahaviour, whilst also allowing this to work. The problem is, the current behaviour is intended to allow (by implementing custom stdio callbacks) device output to be streamed to stdout, without the risk of backchannel warnings or error messages corrupting the device output data. I would prefer this not to involve yet another command line option (we already have *way* too many!). |