Print from android.

219 views
Skip to first unread message

coutinh...@gmail.com

unread,
Sep 25, 2021, 10:45:35 AM9/25/21
to Kivy users support
Good afternoon.

I would love to learn how to print to a thermal printer directly from my tablet.

Do we have any suggestions? Do you have an example?

Grateful.

Elias Coutinho

unread,
Sep 28, 2021, 10:27:47 AM9/28/21
to kivy-...@googlegroups.com
Good morning, is there a possibility for a Kivy application to send text directly to a printer plucked on the tablet's usb?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/bf7d0eb2-db43-4573-a674-a3fe65f29af5n%40googlegroups.com.


--
Elias Coutinho.
Aprender sobre alguns assuntos é fundamental.
Aprender sobre Deus é indiscutivelmente o melhor conteúdo.

Robert

unread,
Sep 28, 2021, 12:58:37 PM9/28/21
to Kivy users support

Elias Coutinho

unread,
Sep 29, 2021, 3:33:47 PM9/29/21
to kivy-...@googlegroups.com
Hi Robert, I was very excited about being able to send printable data with python.

In this link you sent me there is still no solution with python.

Do we have an alternative?

Robert

unread,
Sep 29, 2021, 5:10:42 PM9/29/21
to Kivy users support
Regardless of platform, Python (or most languages) has no built in idea of a thing called a printer.
Generally it is the OS that knows what a printer is.
On your desktop a program creates a file which it sends to the OS, and the OS then sends the file to the printer.

If you want to use Android's printer api from Python, you can access it via Pyjnius

I do not know of a Pyjnius example accessing a printer, which does not mean one does not exist.

I don't know what your skill set is, but a printer driver is absolutely not a beginner task.
And depending what format data you want to print it can be a big challenge. Just so you know.

You may find it easier to save whatever you want to a file in some standard format, and use a 3rd party print app.
Reply all
Reply to author
Forward
0 new messages