Skip to content

Instantly share code, notes, and snippets.

@agail
Created April 14, 2024 12:58
Show Gist options
  • Save agail/46db1fa81bfe1373018242e326b257fe to your computer and use it in GitHub Desktop.
Save agail/46db1fa81bfe1373018242e326b257fe to your computer and use it in GitHub Desktop.
Metric paper size with AirPrint + Cups

- Why do I only get US Legal and US Letter when printing from iPhone?

-- Something has changed in Airprint or iOS and you need to manually set your preferred size in cupsd.conf
Add the following to the bottom of cupsd.conf
DefaultPaperSize A4
# DefaultLanguage <locale> (de,en,fr etc)
delete the contents of /var/cache/cups/* and restart cupsd-service or restart docker container
type ippfind to get the ipp uri of the printer
verify your settings with ipptool -tv ipp://<url> /usr/share/cups/ipptool/get-printer-attributes.test | grep media-ready
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment