Skip to content

Since other software developers are too lazy to implement printing, I did it for them.

License

Notifications You must be signed in to change notification settings

402d/TextToPrint

Repository files navigation

TextToPrint

Demo how print use PrintDocumentAdapter for WebView

Since other software developers are too lazy to implement printing, I did it for them.

The application is the simplest. One screen. WebView and print button. Gets text through the processing of Intent.View and Intent.SEND ("Open with" and "Share"). Having received the text makes it the simplest html.

see createWebPrintJob()

In the settings 4 font sizes. Font A and Font B are suitable for printing on a thermal printer (58mm roll of cash tape) Font D - the smallest (80 characters per line on A4 printer)

The application DOES NOT PRINT yourself. By the print button, a standard PrintDocumentAdapter for WebView is created.

How to use the example of the clipboard.

Select text -> Share -> TextToPrint -> Printer Icon -> Standard Print Preview Dialog.

TextToPrint on Google Play

Get it on Google Play

About

Since other software developers are too lazy to implement printing, I did it for them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published