-1

You can print a PDF directly to a local IP printer? The printer is not connected to any PC.

I can not use Google Cloud Print as I have no outlet to the Internet.

If I use a SOCKET me prints strange characters, since I have no driver for your printer.

Greetings and thank you very much.

Sebosin
  • 167
  • 6
  • 16

1 Answers1

0

You can't just open a socket to the printer and start streaming data. You need to use a library that supports Internet Printing Protocol.

If the printer is mapped as a printer on the computer from which you'd like to print, you should be able to use the Java Print Service API.

If it's not mapped, you'll probably need to use a third party library. See the top rated answer to this question.

Community
  • 1
  • 1
John R
  • 2,066
  • 1
  • 11
  • 17