chuckcharlie / cups-avahi-airprint

Docker image for CUPS intended as an AirPrint relay
GNU General Public License v3.0
123 stars 67 forks source link

A4 format not showing up on iPhone #16

Open JaySea77 opened 1 year ago

JaySea77 commented 1 year ago

Pagesize A4 is not showing up on iPhone but it does show on PC. Also when I try to print from iPhone it doesn't send the print to Cups so it never prints.

chuckcharlie commented 1 year ago

I am actually not sure you can print in A4 on iphone. I Googled a bunch and everyone suggests printing using their printer’s app, not the native iOS option. This isn’t true. Forgot that A4 is Legal, and that option is showing on my phone. This must be a function of the driver and what options are presented. Not sure about your prints not going to Cups. I have no issues there, and others have it working no problem. I would check to make sure your network isn’t suppressing multicasting, or that you are not on a different vlan with multicasting blocked.

JaySea77 commented 1 year ago

I tried another fork of your github project and there it did show A4. I am trying to run this in docker on my synology to get support for a non airprint printer. This AIrprint printer works perfectly on my pc, but not on my ipad nor iphone. From what I noticed is that the pc uses the PageSize from the ppd and ios uses PaperDimension.

Edit: I can add the printer in synology without cups in docker, but this way I cannot select the correct drivers.

chuckcharlie commented 1 year ago

My bad, forgot A4 is “Legal”. What options do you get? And what printer driver are you using?

JaySea77 commented 1 year ago

If I select Legal or A4, there are differences. I do not see a job in cups, nor does it print anything when I use my phone. I use the ppd for a hp laserjet p2055x. I tried the one that is build in your package and a newer version from a newer hplip package. In both cases A4 is missing although it is in the ppd. edit: Btw if multicasting wasn't on, shouldn't just not find the printer on the phone? Becauser I do find it and I can select everything (except for A4) and press print. The dialog closes, but nothing happens.

chuckcharlie commented 1 year ago

Sounds like it is more work than just updating the ppd. https://stackoverflow.com/questions/1028891/whats-the-easiest-way-to-add-custom-page-sizes-to-a-ppd/3112256#3112256

Gotta be a case of differing printer drivers/packages or versions of cups. If you could share the branch of where it worked I might be able to dig through and find the difference. When this container is built it grabs the latest packages, so it could have been broken for your use case when we updated.

JaySea77 commented 1 year ago

The latest hplip is 3.22.10, but the one in this package is 3.20.5. The one which does show A4 is https://hub.docker.com/r/gmkey/cups-avahi-airprint

mpietruschka commented 1 year ago

This is what helped me with my printers https://github.com/apple/cups/issues/6009#issuecomment-1607621191

After that change A4 is shown on my IOS Device.

Well, after I try to print a second time, A4 is not offered anymore. So It didn't help. Sorry.

mpietruschka commented 1 year ago

After I removed all other formats - except A4 - from the .ppd files the ios offered A4 permanently.