FS#49695 - [cups] Paper Size setting is ignored

Attached to Project: Arch Linux
Opened by Dominik Schrempf (dschrempf) - Monday, 13 June 2016, 08:27 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 24 August 2016, 20:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

CUPS papersize option does not take effect.

I have a PS file (A4) that I want to print. I use the EN_US locale system-wide but print in A4. If I print the PS file it gets cut at the top because it uses US Letter (that's still OK). Then, I change the settings in the printing dialog (Page Setup -> Paper Size) to A4 but nothing changes. The same happens, if I print to a PDF file (I use the standard "Print to File", not `cups-pdf`). The output file is always US Letter, irrespective of the "Paper Size" setting.

Workaround:
Put `a4` into `/etc/papersize`. This overrides the system settings and printing works fine. However, changing the file all the time if I want to, e.g., use A3 is not really an option.

Thanks,
Dominik

Additional info:
* package version(s)
extra/cups 2.1.3-2 [installed]
extra/cups-filters 1.9.0-1 [installed]
extra/cups-pk-helper 0.2.6-1 [installed]
extra/libcups 2.1.3-2 [installed]


extra/libpaper 1.1.24-9 [installed]

* config and/or log files etc.
Default Arch Linux configuration files.

Steps to reproduce:
- Try to print a PS file formatted in A4 (either to a file or with a printer).
- Change "Paper Size" setting in printing dialog.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 24 August 2016, 20:34 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Monday, 13 June 2016, 15:15 GMT
https://en.opensuse.org/SDB:Print_Settings_with_CUPS#Different_default_paper_size_settings

This is the best overview I've found about papersize settings. Please check if cups set the papersize properly into its own ppd files.
Comment by Dominik Schrempf (dschrempf) - Thursday, 16 June 2016, 09:44 GMT
Thanks for the link. I checked the following files:

lpoptions:
- /etc/cups/lptopions (does not exist)
- ~/.cups/lptopions (empty file)

PPD:
- /etc/cups/ppd/Brother_HL5380DN.ppd
with settings:
*DefaultPageSize: A4
*DefaultPageRegion: A4
*DefaultImageableArea: A4
*DefaultPaperDimension: A4

Only my locale is set to
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

I am not sure if this is an issue with CUPS, because the wrong paper size settings also happen, when I print to a PDF file (but this may also be a CUPS printer, although I do not have `cups-pdf` intalled, I do not know).

Thanks for your help,
Dominik
Comment by Andreas Radke (AndyRTR) - Thursday, 16 June 2016, 15:59 GMT
You may ask if this is a bug on the cups user mailing list.
Comment by Dominik Schrempf (dschrempf) - Thursday, 07 July 2016, 10:02 GMT
Thanks for your help!

I asked about a week ago at the cups mailing list but there was no answer.

http://www.cups.org/pipermail/cups/2016-July/027899.html
Comment by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 06:25 GMT
https://wiki.debian.org/Locale - I guess you should change LC_PAPER="en_US.utf8" to a German or some other locale that uses DIN A* papersizes.

http://man7.org/linux/man-pages/man7/locale.7.html

LC_PAPER (GNU extension, since glibc 2.2)
Change the settings relating to the dimensions of the standard
paper size (e.g., US letter versus A4). Applications that
need the dimensions can obtain them by using nl_langinfo(3) to
retrieve the nonstandard _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
elements, which return int values specifying the dimensions in
millimeters.
Comment by Dominik Schrempf (dschrempf) - Thursday, 28 July 2016, 08:49 GMT
Yes, this is another workaround, thank you. However, the specific setting of the user in the print dialog is still ignored and in my opinion this should not happen.
Comment by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 17:19 GMT
I guess you will get pretty soon a cold but maybe helpful answer if you file a bug to the cups tracker... :D
Comment by Andreas Radke (AndyRTR) - Tuesday, 23 August 2016, 11:28 GMT
http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/revision/7502

Does the recent cups-filter release fixes this for you? if not you should get in touch with Till Kampeter to find the culprint.
Comment by Dominik Schrempf (dschrempf) - Wednesday, 24 August 2016, 16:09 GMT
With cups-filters 1.11.1 it seems to work, as I saw, this version includes the revision that you had pointed out.
Thank you.

Loading...