Comment 1 for bug 385797

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, can you have a look at your "Generic Text-Only printer"? The "textonly" CUPS filter does not touch paper sizes anywhere and the PPD file has only a "Letter" paper size, no A4, nothing else. The PPD file should also have a cupsFilter lines like

*cupsFilter: "text/* 0 textonly"
*cupsFilter: "application/x-cshell 0 textonly"
*cupsFilter: "application/x-perl 0 textonly"
*cupsFilter: "application/x-shell 0 textonly"
*cupsFilter: "application/x-csource 0 textonly"

instead of

*cupsFilter: "text/plain 0 textonly"

so that all text formats defined in /etc/cups/mime.types get supported.

Another solution for the text-only printer to recognize the additional text formats would be adding the following conversion rules (for example in /usr/share/cups/mime/text.convs):

application/x-cshell text/plain 100 -
application/x-csource text/plain 100 -
application/x-perl text/plain 100 -
application/x-shell text/plain 100 -
text/html text/plain 100 -
text/css text/plain 100 -

This makes all text formats falling back to text/plain if there is no filter chain accepting the text formats themselves.