StarWebPrintBuilder.js
Creates Star webPRNT Request Element.
Constructor
Name | Description |
StarWebPrintBuilder | Creates StarWebPrintBuilder object. |
Method
Name | Description |
createAlignmentElement | Creates Alignment element. |
createBarcodeElement | Creates Barcode element. |
createBitImageElement | Creates Bitimage element. |
createCutPaperElement | Creates Cut paper element. |
createFeedElement | Creates Feed element. |
createHoldPrintElement | Creates Hold print element. |
createInitializationElement | Creates Initialization element. |
createLogoElement | Creates Logo element. |
createPdf417Element | Creates PDF417 element. |
createPeripheralElement | Creates Peripheral(Drawer) element. |
createQrCodeElement | Creates QR code element. |
createRawDataElement *1 | Creates Raw data element. |
createRuledLineElement | Creates Horizontal ruled line element. |
createSoundElement | Creates Sound element. |
createSoundWithSettingElement | Creates Melody speaker element. |
createTextElement | Creates Text element. |
*1 Usage of this method, to send device specific commands, is discouraged in order to maintain compatibility across all supported printers.
Developers are encouraged to use the general Star API wherever possible in order to utilize printer functions.
In the case that the Star API does not offer a feature necessary for your software, please let us know so that we can consider inclusion in a future software update.
Star Printer Compatibility Chart
Please refer to the interface compatibility table by printer model here.
POS Printer
Name | FVP 10 | TSP 650II | TSP 650II SK | TSP 700II | TSP 800II | mPOP | mC- Print2 | mC- Print3 | TSP 100IV | TSP 100IV SK | mC- Label3 |
createAlignmentElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createBarcodeElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createBitImageElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createCutPaperElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createFeedElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createHoldPrintElement | - | - | ✓ | - | - | - | - | - | - | ✓ | ✓ |
createInitializationElement*1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createLogoElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createPdf417Element | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createPeripheralElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createQrCodeElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createRawDataElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createRuledLineElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createSoundElement | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ |
createSoundWithSettingElement*3 | - | - | - | - | - | - | - | ✓*4 | ✓ | ✓ | - |
createTextElement*2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
*1 Performs only initialization of a command for Bluetooth/USB printers
*2 The international character is fixed to "Japan" for Japanese models and "Korea" for Korean models.
*3 Supported only when using Star webPRNT Browser and connecting via Bluetooth/USB interface.
*4 Supported with printer firmware version 1.3 or later.
Mobile Printer (ESC/POS)
Name | SM-S220i (Excluding Jp model) | SM-S230i | SM-T300i | SM-T400i |
createAlignmentElement*1 | ✓ | ✓ | ✓ | ✓ |
createBarcodeElement | ✓ | ✓ | ✓ | ✓ |
createBitImageElement | ✓ | ✓ | ✓ | ✓ |
createCutPaperElement*2 | - | - | - | - |
createFeedElement | ✓ | ✓ | ✓ | ✓ |
createHoldPrintElement | - | - | - | - |
createInitializationElement*3 | ✓ | ✓ | ✓ | ✓ |
createLogoElement*4 | ✓ | ✓ | ✓ | ✓ |
createPdf417Element*5 | ✓ | ✓ | ✓ | ✓ |
createPeripheralElement*6 | - | - | - | - |
createQrCodeElement*7 | ✓ | ✓ | ✓ | ✓ |
createRawDataElement | ✓ | ✓ | ✓ | ✓ |
createRuledLineElement | ✓ | ✓ | ✓ | ✓ |
createSoundElement*6 | - | - | - | - |
createSoundWithSettingElement | - | - | - | - |
createTextElement*8 | ✓ | ✓ | ✓ | ✓ |
*1 Effective only for text data (Not effective for images, barcodes, etc.)
*2 Without paper cut
*3 Performs only initialization of a command
*4 When the logo number 1 - 255 is specified, the No.0 - 254 logo is printed.
*5 The line parameter is ineffective.
*6 Command not created.
*7 The model parameter is ineffective.
*8 The font parameter is ineffective.
Mobile Printer (StarPRNT)
Name | SM-S220i (Excluding Jp model) | SM-S230i | SM-T300i | SM-T400i | SM-L200 | SM-L300 |
createAlignmentElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createBarcodeElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createBitImageElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createCutPaperElement*1 | - | - | - | - | - | - |
createFeedElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createHoldPrintElement | - | - | - | - | - | - |
createInitializationElement*2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createLogoElement*3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createPdf417Element*4 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createPeripheralElement*5 | - | - | - | - | - | - |
createQrCodeElement*6 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createRawDataElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createRuledLineElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
createSoundElement*5 | - | - | - | - | - | - |
createSoundWithSettingElement | - | - | - | - | - | - |
createTextElement | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
*1 Without paper cut
*2 Performs only initialization of a command
*3 Please see here for the correspondence table of logo numbers
*4 The line parameter is ineffective.
*5 Command not created.
*6 The model parameter is ineffective.