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
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
|
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
This is the best overview I've found about papersize settings. Please check if cups set the papersize properly into its own ppd 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
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
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.
Does the recent cups-filter release fixes this for you? if not you should get in touch with Till Kampeter to find the culprint.
Thank you.