paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
50 stars 39 forks source link

mmfeedpage and dotfeedpage not working #43

Open fabarj4 opened 1 year ago

fabarj4 commented 1 year ago

hello everyone, I tried to use this plugin but when I enter the mmfeedpage value and print it it doesn't make a difference. my code

ThermalPrinter.printFormattedTextAndCut(
            {
              type: "bluetooth",
              id: container.activePrinter.address, // You can also use the identifier directly i. e. 00:11:22:33:44:55 (address) or name
              mmFeedPaper: 30,
              dotsFeedPaper: 30,
              // printerWidthMM: container.activeLaundry.printer_width_mm,
              text:
                "[C]<img>" +
                imgHex +
                "</img>\n\n" +
                "[C]<font size='big'>Nama Launndry</font>\n\n" + //nama laundry
                "[C]<font size='normal'>Jl. Dr. Saharjo No.55, RT.6/RW.1, Manggarai Sel., Kec. Tebet, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12860</font>\n\n" + //alamat laundry
                "[C]<font size='normal'>Selamat Datang</font>\n\n" + //ucapan selamat datang
                "[L]<font size='normal'>Tanggal   : 12-04-2023</font>\n" +
                "[L]<font size='normal'>Order Id  : 1</font>\n" +
                "[L]<font size='normal'>Cashier   : Fabar</font>\n" +
                "[L]<font size='normal'>Cust      : Fabar</font>\n" +
                "[L]<font size='normal'>------------------------------</font>\n" +
                "[L]<font size='normal'>Cuci Karpet Meteran - Rose - 3 Hari x6 @20.000 Catatan : Baju Bagus Sekali dan wangi sekali</font>\n[R]<font size='normal'>120.000</font>\n" +
                "[L]<font size='normal'>------------------------------</font>\n" +
                "[L]<font size='normal'>Estimasi Selesai</font>\n" +
                "[L]<font size='normal'>12-04-2023 17:50</font>\n" +
                "[L]<font size='normal'>------------Delivery----------</font>\n" +
                "[L]<font size='normal'>--------------Lunas-----------</font>\n" +
                "[L]<font size='normal'>Subtotal</font>[R]<font size='normal'>120.000</font>\n" +
                "[L]<font size='normal'>Delivery</font>[R]<font size='normal'>10.000</font>\n" +
                "[L]<font size='normal'>Total</font>[R]<font size='normal'>10.000</font>\n" +
                "[L]<font size='normal'>Bayar</font>[R]<font size='normal'>10.000</font>\n" +
                "[R]<font size='normal'>Cash</font>\n" +
                "[L]<font size='normal'>Total</font>[R]<font size='normal'>10.000</font>\n" +
                "[L]<font size='normal'>Bayar</font>[R]<font size='normal'>10.000</font>\n" +
                "[L]<font size='normal'>------------------------------</font>\n" +
                "[L]<font size='normal'>Terima kasih sudah order</font>\n" +
                "[L]<font size='normal'>------------------------------</font>\n" +
                "[C]<qrcode size='30'>https://youtu.be/9vqrUKSb54c?t=194</qrcode>\n\n\n",
              // new lines with "\n"
            },
            function () {
              ("Successfully printed!");
            },
            function (error) {
              console.error("Printing error", error);
              alert(error);
            }
          );

is there any proble in my code ? thank you