[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#497671: CUPS options document-format solves the problem



Hello,

I think I found an acceptable solution to this problem. Basically, the
CUPS (or Adobe, or Microsoft) driver for Windows produces PostScript and
PPD-filters it, embedding the printing options in it, then passes it to
Samba, that passes it to CUPS. What we want is that CUPS recognizes it
as application/vnd.cups-postscript, not as application/postscript to be
filtered again.

After some researches, I finally found that option for CUPS (to try with
lp -o, for instance): document-format. So, just adding
    cups options = "document-format=application/vnd.cups-postscript"
makes it, without any horrible kludge as above.


As serving printers is a work that is often done with Samba, after
serving files, I think this option should be documented in at least one
of these places:
- cupsaddsmb(8);
- smb.conf(5);
- /usr/share/doc/cups/README.Debian;
- /usr/share/doc/samba/README.Debian;
- /etc/samba/smb.conf as a comment.
It can be explained with a text like:
    If you use a PostScript driver on Windows clients, they will send
    pre-filtered PostScript. Use this option to let CUPS know it is not
    plain PostScript to be filtered again with pstops.
    # cups options = "document-format=application/vnd.cups-postscript"

Regards,

-- 
Tanguy Ortolo




Reply to: