Skip to content

Debian: Add support for Apple AirPrint - #27

Closed
OdyX wants to merge 1 commit into
OpenPrinting:masterfrom
OdyX:debian/support-airprint
Closed

Debian: Add support for Apple AirPrint#27
OdyX wants to merge 1 commit into
OpenPrinting:masterfrom
OdyX:debian/support-airprint

Conversation

@OdyX

@OdyX OdyX commented Nov 4, 2020

Copy link
Copy Markdown
Contributor

I'm well aware this one is most probably contentious for Apple. But OpenPrinting is not Apple :-)

Bug-Ubuntu: https://bugs.launchpad.net/bugs/711779
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1054495
Bug-Debian: https://bugs.debian.org/700961
Bug: apple/cups#4341

@michaelrsweet

Copy link
Copy Markdown
Member

No, but CUPS does not conform to the AirPrint specification and never can because we don't support media-ready/media-col-ready. That basically limits printing from iOS to US Letter/A4, which is only slightly better than useless.

Will consider some parts of this in the future, but really this change will need major work before it can be merged.

@michaelrsweet michaelrsweet self-assigned this Nov 4, 2020
@michaelrsweet michaelrsweet added enhancement New feature or request priority-low labels Nov 4, 2020

@michaelrsweet michaelrsweet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so aside from the comments I've provided we need to add support for media-ready/media-col-ready to make this marginally useful.

Comment thread conf/mime.convs.in
application/vnd.cups-raster image/pwg-raster 100 rastertopwg
application/vnd.cups-raster image/urf 100 rastertopwg

# Needed for printing from iOS (AirPrint) clients

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot use the name AirPrint.

Comment thread conf/mime.types
image/x-bitmap bmp string(0,BM) + !printable(2,14)
image/x-icon ico

# Needed for printing from iOS (AirPrint) clients

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot use the name AirPrint.

Comment thread scheduler/dirsvc.c
keyvalue[count ][0] = "pdl";
keyvalue[count++][1] = p->pdl ? p->pdl : "application/postscript";

/* iOS 6 does not accept this printer as AirPrint printer if there is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are going to do this, we need to do it right. PAPPL provides the proper mapping from pwg-raster-document-type-supported/resolution-supported/sheet-back to urf-supported. And then the URF key needs to use the value of the urf-supported attribute.

@michaelrsweet michaelrsweet added this to the v2.4.0 milestone Mar 1, 2021
@michaelrsweet

Copy link
Copy Markdown
Member

OK, tracking this for CUPS 2.4.0 in issue #105.

sir-xw pushed a commit to openkylin/cups that referenced this pull request Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority-low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants