我正在使用Intermec android SDK打印到intermec打印机: Intermec Printer SDK 我面临的问题是我无法打印阿拉伯语文本 我正在使用Intermec PR3模型。 我不知道, 请帮帮我?
这是代码段:
lp.setBold(true);
lp.setDoubleWide(false);
lp.setDoubleHigh(false);
lp.write("بسم الله الرحمن الرحيم");
lp.setDoubleWide(false);
lp.setDoubleHigh(false);
lp.newLine(2);
答案 0 :(得分:1)
最后我通过使用arabicIntermec lib解决了阿拉伯语文本问题:
public function store1(Request $request)
{
$this->validate($request, [
'file' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
]);
if ($request->hasFile('file')) {
$image = $request->file('file');
$name = $image->getClientOriginalName();
$size = $image->getClientSize();
$id = $request->user_id;
$destinationPath = public_path('/images');
$image->move($destinationPath, $name);
$userImage = new UserImage;
$personal_info = new personal_info;
$userImage->name = $name;
$userImage->size = $size;
$user = personal_info::find($id);
$user->UserImages()->save($userImage);
}
return redirect('/home');
}
Github链接:IntermecPrinter-Arabic Text