Summary: | "Can't refill scanner input buffer" error when Ubuntu test page (PostScript) fed into GS via stdin | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | PS Interpreter | Assignee: | Alex Cherepanov <alex> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | ||
Priority: | P4 | ||
Version: | 8.71 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
testpage-a4.ps
ps2pdfwr |
Description
Till Kamppeter
2010-02-23 13:47:23 UTC
Created attachment 5982 [details]
testpage-a4.ps
Offending file: Ubuntu test page.
Problem is that the PS Interpreter tries to seek on the input file for certain files. A fix would be to avoid seeking under all circumstances, for example by reading bigger pieces into a buffer. A workaround is to never call Ghostscript with "-" as input file but always use "-_" instead. For this especially also all scripts which come with Ghostscript need to be fixed. See the attached ps2pdfwr as an example. The additional if [ "${infile}" = "-" ]; then infile="-_" fi solves the problem when any ps2pdf* script is used. Created attachment 5983 [details]
ps2pdfwr
ps2pdfwr which uses "-_" instead of "-" in its Ghostscript call when input
comes from stdin.
|