Linux Print-problem and solution

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

Post Reply
norand
Posts: 6
Joined: Sat Feb 11, 2017 4:32 pm

Linux Print-problem and solution

Post by norand »

Weeks again I wondered why suddenly xnviewmp prints and generated pdf in black and white only and reported it in this forum as an error.

Now I found the solution: _some_ programs generates a lpoptions-File. This file, if exist, overrides _all_ printjob-settings which not set all properties itself. One time I use a program to print something in grayscale, which then generates the hidden file lpoptions. From then, every output of xnview prints grayscale only. Even though the cups-web-interface _not_ shows this setting.

The local lpoptions-file ist a hidden file in the home-directory of the user (~/.cups/lpoptions), and the global pendant is /etc/lpoptions. A user can set and query lpoptions manually with the cups-command of the same name "lpoptions". After deleting the local lpoptions file, xnview will print normally with standard settings of the printer, i.e. with color.

By implication, a user can set all print-options for cups without a print-menu inside xnviewMP with the external command lpoptions, which writes it in the file ~/.cups/lpoptions. One can set papersize, color, tray and so forth, everything the printer can do. But don't forget to switch back to standard-settings or alternatively to delete the lpoptions file afterwards.

hope that helps for some printing unusualnesses with xnview.

norand
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux Print-problem and solution

Post by xnview »

thanks, some users have the b&w print problem
Pierre.
Post Reply