From 7e4dd0cc705cd7f77b1a9207a7bd8c349fd3429c Mon Sep 17 00:00:00 2001 From: Chris Ainscough Date: Sat, 3 Nov 2012 13:22:57 -0600 Subject: [PATCH 1/2] fixed iOS6 issue and included files for cups. --- README | 12 +++++++++++- airprint-generate.py | 2 +- airprint.convs | 17 +++++++++++++++++ airprint.types | 8 ++++++++ apple.types | 1 + 5 files changed, 38 insertions(+), 2 deletions(-) mode change 100644 => 100755 README create mode 100755 airprint.convs create mode 100755 airprint.types create mode 100755 apple.types diff --git a/README b/README old mode 100644 new mode 100755 index bda4853..ec7c005 --- a/README +++ b/README @@ -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: @@ -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 \ No newline at end of file + Prefix all files with this string diff --git a/airprint-generate.py b/airprint-generate.py index 989f63b..10b5b43 100755 --- a/airprint-generate.py +++ b/airprint-generate.py @@ -55,7 +55,7 @@ txtvers=1 qtotal=1 Transparent=T - URF=none + URF=DM3 """ diff --git a/airprint.convs b/airprint.convs new file mode 100755 index 0000000..6d27146 --- /dev/null +++ b/airprint.convs @@ -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: $". +# diff --git a/airprint.types b/airprint.types new file mode 100755 index 0000000..88370bc --- /dev/null +++ b/airprint.types @@ -0,0 +1,8 @@ +# +# "$Id: $" +# +# AirPrint type +image/urf urf string(0,UNIRAST<00>) +# +# End of "$Id: $". +# diff --git a/apple.types b/apple.types new file mode 100755 index 0000000..440f34e --- /dev/null +++ b/apple.types @@ -0,0 +1 @@ +image/urf urf (0,UNIRAST) From 3748de64ac94134937473bf6c9f799f2a66f5272 Mon Sep 17 00:00:00 2001 From: plutz Date: Sat, 24 Nov 2012 14:26:15 -0600 Subject: [PATCH 2/2] Update airprint.convs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed comment fromĀ image/urf application/pdf 100 - pdftoraster --- airprint.convs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airprint.convs b/airprint.convs index 6d27146..55e5412 100755 --- a/airprint.convs +++ b/airprint.convs @@ -9,7 +9,7 @@ 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 +image/urf application/pdf 100 - pdftoraster application/vnd.apple-postscript image/urf 250 pstocupsraster application/vnd.cups-postscript image/urf 250 pstocupsraster #