Could you stop CUPS via

sudo systenctl stop cups

then edit your PPD file
/etc/cups/ppd/HP_LaserJet_100_colorMFP_M175nw_61F41D.ppd changing the
line (line 21)

*cupsFilter2: "application/vnd.cups-pdf application/pdf 200 -"

to

*%cupsFilter2: "application/vnd.cups-pdf application/pdf 200 -"

The added % after the * in the beginning makes a comment line out of the
line, making it inactive. This makes CUPS not trying to send PDF to your
printer any more but the alternative URF Apple Raster) format (via line
22).

Save the modified PPD file and start CUPS again:

sudo systenctl start cups

Try to print. Is the output the correct size now?

It seems that if your printer receives PDF, it tries to scale the PDF
pages down into the frame defined by the printer's unprintable margins,
making them slightly smaller.

-- 
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/1998917

Title:
  Everything prints approximately 2% too small after upgrading to Ubuntu
  22.04

Status in cups package in Ubuntu:
  New

Bug description:
  To reproduce:

  1. Open Inkscape.
  2. Draw a rectangle 170mm x 230mm.
  3. Print it.

  Expected result:

  The printed rectangle on paper should measure 170mm x 230mm.

  Actual result:

  The rectangle measures 168mm x 226mm, a difference of approximately
  2%.


  I print a lot of labels. I make them in both LibreOffice (for mail
  merge) and Inkscape (when I want them all the same).

  I use standard downloaded templates in LibreOffice and in Inkscape I
  have made my own manually.

  I recently upgraded to 22.04 and now whenever I print any of my
  existing documents they no longer line up with the labels. They line
  up in the top left of the page but at the bottom right they are
  misaligned, shifted up and left. This happens because the entire page
  is now printed 2% smaller.

  Nothing else has changed about my setup: it is the same printer and
  the same documents printing differently. The printer is a network
  printer.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: cups 2.4.1op1-1ubuntu4.1
  ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53
  Uname: Linux 5.15.0-48-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CupsErrorLog:
   W [06/Dec/2022:00:00:06 +0000] CreateProfile failed: 
org.freedesktop.ColorManager.AlreadyExists:profile id 
\'HP_LaserJet_100_colorMFP_M175nw_61F41D-Gray..\' already exists
   W [06/Dec/2022:00:00:06 +0000] CreateProfile failed: 
org.freedesktop.ColorManager.AlreadyExists:profile id 
\'HP_LaserJet_100_colorMFP_M175nw_61F41D-DeviceN..\' already exists
  CurrentDesktop: XFCE
  Date: Tue Dec  6 11:42:58 2022
  InstallationDate: Installed on 2018-05-07 (1673 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 
(20180426)
  Lpstat: device for HP_LaserJet_100_colorMFP_M175nw_61F41D: 
implicitclass://HP_LaserJet_100_colorMFP_M175nw_61F41D/
  MachineType: System manufacturer System Product Name
  Papersize: a4
  PpdFiles: Error: command ['fgrep', '-H', '*NickName', 
'/etc/cups/ppd/HP_LaserJet_100_colorMFP_M175nw_61F41D.ppd'] failed with exit 
code 2: grep: /etc/cups/ppd/HP_LaserJet_100_colorMFP_M175nw_61F41D.ppd: 
Permission denied
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-48-generic 
root=UUID=96ca3669-e2ac-4371-b36d-55bc9f3bd03a ro quiet splash vt.handoff=7
  RebootRequiredPkgs: Error: path contained symlinks.
  Snap.Changes: no changes found
  SourcePackage: cups
  UpgradeStatus: Upgraded to jammy on 2022-08-12 (115 days ago)
  dmi.bios.date: 03/15/2018
  dmi.bios.release: 5.12
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 3802
  dmi.board.asset.tag: Default string
  dmi.board.name: Z170-A
  dmi.board.vendor: ASUSTeK COMPUTER INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr3802:bd03/15/2018:br5.12:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnZ170-A:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
  dmi.product.family: To be filled by O.E.M.
  dmi.product.name: System Product Name
  dmi.product.sku: SKU
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1998917/+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

Reply via email to