mazenrashed / Printooth

A well documented, high-level Android interface that makes printing via bluetooth printers easier
Mozilla Public License 2.0
396 stars 112 forks source link

TextPrintable is not working #110

Open syedbaber opened 1 year ago

syedbaber commented 1 year ago

TextPrintable is not working. If we give any text as a string so it will not print. If .setNewLinesAfter(1) is provided blank paper is coming out. Other RawPrinting and ImagePrinting is working fine.

jalikk24 commented 1 month ago

i made this

ArrayList<Printable> printables = new ArrayList<>();
        printables.add(new RawPrintable.Builder(new byte[]{27,100,4}).build());

        printables.add(new TextPrintable.Builder()
                .setText("Testing Apotek Akbar")
                .setNewLinesAfter(1)
                .build());

        Printooth.INSTANCE.printer().print(printables);
        Printooth.INSTANCE.printer().setPrintingCallback(this);

and the printer is not printing the text, what should i do?