Professional Documents
Culture Documents
PHP - Cetak Printer Thermal
PHP - Cetak Printer Thermal
<script src="https://cdn.jsdelivr.net/npm/recta/dist/recta.js"></script>
<script type="text/javascript">
var printer = new Recta('APPKEY', '1811')
function onClick () {
printer.open().then(function () {
printer.align('center')
.text('Hello World !!')
.bold(true)
.text('This is bold text')
.bold(false)
.underline(true)
.text('This is underline text')
.underline(false)
.barcode('UPC-A', '123456789012')
.cut()
.print()
})
}
</script>