I want to send data directly to the ethernet printer from my iPad. Is there any API for this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you had some PDF, Postscript, PCL or other data file in a format that was supported by the printer you could simply open port 9100 to the IP of the printer and send the data.
Virtually all network printers can talk talked to over 9100. You can also use port 515 but that requires that you have an LPR client. Port 9100 will simply receive your data as ‘RAW’ and print whatever is in the stream. It means that you must output something the printer understands such as PCL/PS (PDF for some devices) etc.
You can also send simple text with no control codes will be treated as PCL by most devices applying whatever the default font, orientation etc. is set.
You can try this on a desktop PC to a printer by using telnet to port 9100 of a printer. Once telnet is open, type some text and close telnet (or wait for the printer to timeout). Your text should print.