Linux Print-problem and solution

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

Moderators: XnTriq, xnview

norand
Posts: 5
Joined: Sat Feb 11, 2017 4:32 pm

Linux Print-problem and solution

Postby norand » Wed May 10, 2017 8:53 am

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: 27082
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux Print-problem and solution

Postby xnview » Tue May 16, 2017 2:08 pm

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


Return to “MP - General Support”

Who is online

Users browsing this forum: No registered users and 2 guests