Mailinglist Archive: opensuse-bugs (9642 mails)

< Previous Next >
[Bug 339736] New: cups: PostScript "wrapping" causes additional unwanted output
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Nov 2007 01:11:49 -0700 (MST)
  • Message-id: <bug-339736-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxx
ReportedBy: Ulrich.Windl@xxxxxxxxxxxxxxxxxxxx
QAContact: jsmeix@xxxxxxxxxx
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.

< Previous Next >
Follow Ups