Printing problem
Ian Stephen
ianstepn
Mon Jan 24 20:09:45 PST 2005
On Mon, 2005-01-24 at 14:06, Net Llama! wrote:
> On Mon, 24 Jan 2005, Ian Stephen wrote:
<snip>
> > What's coming out of the printer is the same as what is seen if one
> > prints to file (postscript) from OpenOffice.org, then opens that file in
> > Emacs.
> >
> > ie;
> > %!PS-Adobe-3.0
> > %%BoundingBox: (atend)
> > %%Creator: OpenOffice.org 1.1.3
> >
> > and so on for thousands of lines.
>
> so its not detecting those files as postscript, but rather raw (plain)
> text. i wonder how cups decides what is ps and what is text?
It uses rules in the file /etc/cups/mime.types
In mine postscript is identified by the lines
application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
contains(0,128,<1B>%-12345X) + \
(contains(0,1024,"LANGUAGE=POSTSCRIPT") \
contains(0,1024,"LANGUAGE = Postscript") \
contains(0,1024,"LANGUAGE = POSTSCRIPT"))
some of which I understand. The file can have the extension ai, eps or
ps. If the file name is not given to the cups server it looks for the
string "%!" in line 0 or variations of the words "LANGUAGE = postscript"
in the first 1024 bytes of the file. The ones with <04> or <18> I don't
know.
IanS
More information about the Linux-users
mailing list