[Bug 339736] New: cups: PostScript "wrapping" causes additional unwanted output
https://bugzilla.novell.com/show_bug.cgi?id=339736 Summary: cups: PostScript "wrapping" causes additional unwanted output Product: openSUSE 10.3 Version: Final Platform: All OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: Ulrich.Windl@rz.uni-regensburg.de QAContact: jsmeix@novell.com Found By: --- When printing a PostScript file to a PostScript printer using CUPS, it seems that CUPS modifies the PostScript file before it's sent to the printer. In some cases this may produce unwanted output. Specifically CUPS seems to add this at the end of the PostScript file: %%Trailer %%Pages: 0 %%BoundingBox: ... %%EOF For special PostScript files that use "readstring" to process part of the input file via PostScript, the additional lines will also be processed (and possibly output). A sketch of such code would look like this. %------ snip ------- /process { /buff 1 string def { currentfile buff readstring not { pop exit } if dup stringwidth pop /tw exch def show tw 0 rmoveto } loop showpage } def 100 400 moveto /Helvetica findfont 10 scalefont setfont process Sample line of text to be printed %------ snip ------- In Ghostscript the sample line would be printed correctly, but with CUPS the extra trailer will be output as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=339736#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2007-11-07 01:45:12 MST --- Usually PostScript is processed as described at http://en.opensuse.org/SDB:CUPS_in_a_Nutshell and in more detail at http://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS Usually applications produce printer-independent generic PostScript and then the above is perfectly right. If you like to print "special PostScript files" and you like to pass them as is to your PostScript printer, print them in "raw" mode, e.g. via "lp -d <queue> -o raw file.ps" or set up a "raw" queue, see http://en.opensuse.org/SDB:CUPS_in_a_Nutshell -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com