Public bug reported: lp seems not to obey margin settings as expected.
Description: Ubuntu 18.04.1 LTS Release: 18.04 CUPS 2.2.7-1 ubuntu2.1 Sending a fairly dense text file using lp -P1 <filename> gives output on my HP OfficeJet 6310 with top margin 0.5”, left margin 0.14”, right margin 0.5”, bottom margin 0.5” /etc/cups/ppd/HP-Officejet.ppd has *ImageableArea A4/A4 210x297mm: "18 36 577.440002441406 805.679992675781" *HWMargins: 18 36 18 36 so top and bottom are ok, but left and right margins aren’t. Sending the same file with options set in ~/.cups/lpoptions Default HP-Officejet Dest Officejet 6300 ColorModel=KGray MediaType=Plain OutputMode=Draft outputorder=reverse page-bottom=36 page-left=36 page-right=36 page_top=54 PrintoutMode=Normal.Gray Quality=300GrayscaleK has no effect whatsoever. Sending the same file with options set in the commandline, lp-o page-left=36 -o page-right=36 -o page_top=54 -o page-bottom=36 -P1 <filename> gives top margin of 0.5” (no change!), left margin of 0.4”(less than expected), right margin 0.7” (more than expected), and bottom margin of 0.5”. There is no /etc/cups/lpoptions. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: cups 2.2.7-1ubuntu2.1 ProcVersionSignature: Ubuntu 4.15.0-32.35-generic 4.15.18 Uname: Linux 4.15.0-32-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.2 Architecture: amd64 CurrentDesktop: X-Cinnamon Date: Thu Aug 30 14:47:17 2018 InstallationDate: Installed on 2017-03-09 (538 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) Lpstat: device for HP-Officejet: hp:/net/Officejet_6300_series?ip=192.168.1.65 device for HP-z-Fax: socket://localhost:9900 MachineType: Dell Inc. Inspiron 5767 Papersize: a4 PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP-Officejet.ppd', '/etc/cups/ppd/HP-z-Fax.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP-Officejet.ppd: Permission denied grep: /etc/cups/ppd/HP-z-Fax.ppd: Permission denied ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-32-generic root=UUID=beba05d5-5ee1-4288-a1c2-c425658b569f ro quiet splash pcie_aspm=off vt.handoff=1 SourcePackage: cups UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 11/30/2016 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.0.9 dmi.board.name: 0PH0G6 dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.0.9:bd11/30/2016:svnDellInc.:pnInspiron5767:pvr:rvnDellInc.:rn0PH0G6:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 5767 dmi.sys.vendor: Dell Inc. ** Affects: cups (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apparmor apport-bug bionic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to cups in Ubuntu. https://bugs.launchpad.net/bugs/1789905 Title: lp margin settings Status in cups package in Ubuntu: New Bug description: lp seems not to obey margin settings as expected. Description: Ubuntu 18.04.1 LTS Release: 18.04 CUPS 2.2.7-1 ubuntu2.1 Sending a fairly dense text file using lp -P1 <filename> gives output on my HP OfficeJet 6310 with top margin 0.5”, left margin 0.14”, right margin 0.5”, bottom margin 0.5” /etc/cups/ppd/HP-Officejet.ppd has *ImageableArea A4/A4 210x297mm: "18 36 577.440002441406 805.679992675781" *HWMargins: 18 36 18 36 so top and bottom are ok, but left and right margins aren’t. Sending the same file with options set in ~/.cups/lpoptions Default HP-Officejet Dest Officejet 6300 ColorModel=KGray MediaType=Plain OutputMode=Draft outputorder=reverse page-bottom=36 page-left=36 page-right=36 page_top=54 PrintoutMode=Normal.Gray Quality=300GrayscaleK has no effect whatsoever. Sending the same file with options set in the commandline, lp-o page-left=36 -o page-right=36 -o page_top=54 -o page-bottom=36 -P1 <filename> gives top margin of 0.5” (no change!), left margin of 0.4”(less than expected), right margin 0.7” (more than expected), and bottom margin of 0.5”. There is no /etc/cups/lpoptions. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: cups 2.2.7-1ubuntu2.1 ProcVersionSignature: Ubuntu 4.15.0-32.35-generic 4.15.18 Uname: Linux 4.15.0-32-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.2 Architecture: amd64 CurrentDesktop: X-Cinnamon Date: Thu Aug 30 14:47:17 2018 InstallationDate: Installed on 2017-03-09 (538 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) Lpstat: device for HP-Officejet: hp:/net/Officejet_6300_series?ip=192.168.1.65 device for HP-z-Fax: socket://localhost:9900 MachineType: Dell Inc. Inspiron 5767 Papersize: a4 PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP-Officejet.ppd', '/etc/cups/ppd/HP-z-Fax.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP-Officejet.ppd: Permission denied grep: /etc/cups/ppd/HP-z-Fax.ppd: Permission denied ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-32-generic root=UUID=beba05d5-5ee1-4288-a1c2-c425658b569f ro quiet splash pcie_aspm=off vt.handoff=1 SourcePackage: cups UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 11/30/2016 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.0.9 dmi.board.name: 0PH0G6 dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.0.9:bd11/30/2016:svnDellInc.:pnInspiron5767:pvr:rvnDellInc.:rn0PH0G6:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 5767 dmi.sys.vendor: Dell Inc. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1789905/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp