Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A4 format not showing up on iPhone #16

Open
JaySea77 opened this issue Jan 26, 2023 · 8 comments
Open

A4 format not showing up on iPhone #16

JaySea77 opened this issue Jan 26, 2023 · 8 comments

Comments

@JaySea77
Copy link

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
Copy link
Owner

chuckcharlie commented Jan 26, 2023

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
Copy link
Author

JaySea77 commented Jan 26, 2023

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
Copy link
Owner

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

@JaySea77
Copy link
Author

JaySea77 commented Jan 26, 2023

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
Copy link
Owner

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
Copy link
Author

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
Copy link

mpietruschka commented Aug 3, 2023

This is what helped me with my printers apple/cups#6009 (comment)

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants