SDB:Print Settings for ASCII Texts with CUPS
From openSUSE
Version: 8.1
[edit]
Situation
You use the printing system CUPS and want to change the print settings for ASCII texts (for example, the margins or the size or number of characters).
[edit]
Procedure
- If you use KDE:
- After selecting the queue, the KDE printing program "kprinter" enables you to modify the settings under "Properties..." and "Text". Then apply the changes permanently with "Save".
As in the case of "xpp", the settings are stored in the file~/.lpoptions. - Once the configuration is completed, click "OK" then "Print" under kprinter's main menu.
- After doing this, kprinter asks whether the ASCII text data should be converted or maintained. Select "maintain" if you want the CUPS printing system to receive actual ASCII text data, as the text configuration performed above applies only for ASCII. If, on the other hand, you selected "Convert", kprinter would convert the ASCII text data to PostScript and the performed settings would not apply. PostScript settings can be changed under "Properties..." then "General".
For example, the following settings will produce a similar output:- Under "Properties...general": 2 pages per sheet, landscape orientation, then "Convert".
- Under "Properties...text": 15 characters per inch, 9 lines per inch, and 2 columns. Under "Properties...general": landscape orientation and "Maintain".
- The default setting of kprinter's dialog allows you to choose between "Convert" and "Maintain". However, if you check "Do not ask again", kprinter will no longer display this dialog and "Convert" will be selected automatically.
To reset the standard settings of kprinter, delete its configuration file with the commandrm ~/.kde/share/config/kprinterrc
- After selecting the queue, the KDE printing program "kprinter" enables you to modify the settings under "Properties..." and "Text". Then apply the changes permanently with "Save".
- If you use the command line:
- See SDB:PRINTING: Setting the Page Size of ASCII files. and SDB:CUPS in a Nutshell the section "Command-line Tools" and SDB:Print Settings with CUPS
- Resetting the queues to their standard settings
- To reset the queue's modified settings to the system standard settings, delete the relevant file as a normal user with
rm ~/.cups/lpoptions(since CUPS 1.2 / openSUSE 10.2 or withrm ~/.lpoptions(for CUPS 1.1).
- To reset the queue's modified settings to the system standard settings, delete the relevant file as a normal user with
Keywords: CUPS | margin | margins | settings | printer | print

