All PostScript programs that use "readline" to process the following data up to end of file will be affected by this CUPS behaviour. The symptoms depend on what processing the program performs on the input. Some programs will cause the unwanted text to be printed on the page. Others may omit to print the final page.
The developers of CUPS are unwilling to change its behaviour, which is most unfortunate. It means that this class of PostScript program can be printed from any environment except for one running CUPS. To get around the problem, Quikscript has been modified to deal with it. The processing of input will cease if a line is read which commences with %%EndDocument. It is hoped that this string does not occur in normal documents, and if it does, that the text is not placed at the start of a line.