更新 src/android/cordova/plugin/jcprinter/JcPrinter.java
This commit is contained in:
parent
97e5d3102a
commit
0e3235a44c
@ -149,13 +149,13 @@ public class JcPrinter extends CordovaPlugin {
|
||||
quantity = 1;
|
||||
int totalQuantity = pageCount * quantity;
|
||||
|
||||
//总打印份数,表示所有页面的打印份数之和。例如,如果你有3页需要打印,第一页打印3份,第二页打印2份,第三页打印5份,那么count的值应为10(3+2+5)。
|
||||
//总打印份数
|
||||
Util.getInstance().setTotalQuantityOfPrints(totalQuantity);
|
||||
printDensity = 8;
|
||||
printMode = 2;
|
||||
Log.d(TAG, "测试:参数设置-打印浓度: " + printDensity + ",打印模式:" + printMode);
|
||||
/*
|
||||
* 参数1:打印浓度 ,参数2:纸张类型 参数3:打印模式
|
||||
* 参数1:打印浓度 参数2:纸张类型 参数3:打印模式
|
||||
* 打印浓度 B50/B50W/T6/T7/T8 建议设置6或8,Z401/B32建议设置8,B3S/B21/B203/B1建议设置3
|
||||
*/
|
||||
Util.getInstance().startPrintJob(printDensity, 2, printMode, new PrintCallback() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user