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

Fixed iOS6 issue #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ are trimmed out of the list run with the script with the verbose flag (--verbose
If python-lxml is installed, .service files will be generated in a human
readble format, I wasn't able to get minidom's version to work acceptably.

The git repository also contains airprint.convs, airprint.types and apple.types. These need
to be copied to the /usr/share/cups/mime folder.

Copy the .service files generated by this script to /etc/avahi/services.

Then restart both avahi and cups with
sudo service avahi-daemon restart
sudo service cups restart


Usage: airprint-generate.py [options]

Options:
Expand All @@ -29,4 +39,4 @@ Options:
Directory to create service files
-v, --verbose Print debugging information to STDERR
-p PREFIX, --prefix=PREFIX
Prefix all files with this string
Prefix all files with this string
2 changes: 1 addition & 1 deletion airprint-generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<txt-record>txtvers=1</txt-record>
<txt-record>qtotal=1</txt-record>
<txt-record>Transparent=T</txt-record>
<txt-record>URF=none</txt-record>
<txt-record>URF=DM3</txt-record>
</service>
</service-group>"""

Expand Down
17 changes: 17 additions & 0 deletions airprint.convs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# "$Id: $"
#
# AirPrint
#leave it to others to fine tune this list
# not sure of all these are needed and 100 as priority might conflict with others
#
application/vnd.cups-raster image/urf 100 rastertourf
application/pdf image/urf 100 pdftoraster
# next line is need for generate.py and might be the only one needed
# will try later maybe myself
image/urf application/pdf 100 - pdftoraster
application/vnd.apple-postscript image/urf 250 pstocupsraster
application/vnd.cups-postscript image/urf 250 pstocupsraster
#
# End of "$Id: $".
#
8 changes: 8 additions & 0 deletions airprint.types
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# "$Id: $"
#
# AirPrint type
image/urf urf string(0,UNIRAST<00>)
#
# End of "$Id: $".
#
1 change: 1 addition & 0 deletions apple.types
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image/urf urf (0,UNIRAST)