user804417 user804417 - 1 year ago 75
iOS Question

Non-AirPrint-enabled printer for iOS

For non-AirPrint enabled printer Apple does not have any in built API.
I learned that we can add a WiFi module to a printer. So my question is:

  • If I add WiFi module to a printer, will it be AirPrint-enabled?

  • If not: can a non-AirPrint-enabled printer be made AirPrint-enabled by other means?

  • If I get a non-AirPrint-enabled printer is it possible to connect to it from an iPad?

  • If yes what is the protocol I should use?

  • Is there any open source library on this?

I found the following one:

But from the documentation I could not understand: is it only for AirPrint enabled printers?

Below are the ways I can connect a desktop printer using iPad I guess.

  1. WIFI enabled

  2. Bluetooth enabled

  3. Bonjour enabled printer

  4. Networked printers (printer having same ip segment with iPad)

Answer Source

Trying to answer all your questions:

  • If I add a wifi module, will my printer be AirPrint enabled?
  • Can a non-AirPrint printer be made into an AirPrint printer?

No. You need an AirPrint compatible printer, simply making it available over WiFi does not make it an AirPrint printer, and you cannot change the device to make it an AirPrint printer.

  • If not, can I still use it?

Yes. However, it will require that you directly open connection with the printer (via a socket) and send the data that way. It's really not too hard to do. There are likely some libraries available, but I haven't specifically tried. The code to open the port and send a data blob is pretty trivial, assuming you have the PCL data already.

  • Can I connect to a WiFi printer?

Yes, as described above.

  • ... Bluetooth?

Yes, but only on MFi (Made For iOS) printers.

  • ... Bonjour

Yes, via the built in print dialog.

  • ... Networked

This could probably be done the same way as the WiFi printing, but I haven't tried it yet.

Hope that helps, let me know if I can clarify anything.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download