Intermec PR3 printer to print from android app using intermec SDK?

痞子三分冷 提交于 2019-12-24 08:11:38

问题


I'm using Intermec android SDK to print to intermec printers: Intermec Printer SDK The problem that I faced that i can't print arabic text i'm using Intermec PR3 model. I have no idea, Please help me?

This is the code snippet:

            lp.setBold(true);
            lp.setDoubleWide(false);
            lp.setDoubleHigh(false);
            lp.write("بسم الله الرحمن الرحيم");
            lp.setDoubleWide(false);
            lp.setDoubleHigh(false);
            lp.newLine(2); 

回答1:


Finally i solved arabic text problem as the following by using arabicIntermec lib:

Arabic864 arabic864 = new Arabic864();

byte[] arabicTXT = arabic864.Convert("بسم الله الرحمن الرحيم", false);

lp.write(arabicTXT);

Github link: IntermecPrinter-Arabic Text



来源:https://stackoverflow.com/questions/46390480/intermec-pr3-printer-to-print-from-android-app-using-intermec-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!