Receipt designer for thermal printers - Free and open source

In the last months I have been working on a ticket designer to print on thermal printers by using ESC POS commands. The free ESC POS thermal printer designer is web-based and can be used to create your own invoices, whether sales receipt, sales invoice, purchase receipt and any other design to print on thermal printers. If you want, you can try it right now with the link below, but I recommend you review the content of the post before trying it: https://parzibyte.me/apps/ticket-designer/#/first-steps You will be able to print images, formatted text, tables, QR codes, barcodes, cut the paper, advance it, open the cash drawer and design any receipt for your POS printer. This will work with USB printers on Windows, Linux and Raspberry; as well as Bluetooth printers on Android. All using the same ESC POS receipt designer. ...

January 5, 2024 · 5 min · 1051 words · Parzibyte

JavaScript: store and read files with the Origin Private File System

In this post you will learn how to use the Origin Private File System with JavaScript to store, read and remove any file on the web browser. You may try the demo here: https://stackblitz.com/edit/vitejs-vite-hl34zf?file=index.html As I said before, the Origin Private File System has arrived to revolutionize things with JavaScript. Thanks to OPFS we can have a complete file system with JavaScript directly in the web browser. With this new technology, we can write any type of file in the web browser, as well as download it later. All of this without depending on localStorage or similar things; It is a different technology. Text documents, images, videos and even databases can be saved, and there is no need to ask the user for permission or confirmation, everything is transparent. ...

October 6, 2023 · 5 min · 1064 words · Parzibyte

Passing parameters to Svelte function

In Svelte we can define functions that are going to be called when an event is triggered. For example, to call holaMundo on the click of an element we can indicate it as on:click={holaMundo} Sometimes it is necessary to pass parameters to that function inside a Svelte component, but we cannot indicate it like this: on:click={holaMundo(parameter)} Since that will execute the function as soon as the component is loaded, and won’t wait for the click. In this post I will show you how to pass arguments to functions in Svelte without calling them automatically. ...

June 28, 2023 · 3 min · 521 words · Parzibyte

Silent PDF Print with JavaScript and plugin

Today I am going to present you a plugin that I have just created. It is a plugin to print a PDF file silently, that is, without asking the user for confirmation. This plugin exposes a REST API so that a PDF can be printed without confirmation using JavaScript. Just make an HTTP GET request to the plugin path sending the name of the PDF and the name of the printer. The best thing about this is that you can use the virtual printers that Windows offers, in this way you can do your tests in an ecological way. Throughout this post I will show you the documentation of the plugin and all the details of it, including how you can get it. ...

March 21, 2021 · 13 min · 2581 words · Parzibyte

Enable CORS in Flask app

In this post I will show you how to enable CORS (Cross Origin Resource sharing) so that you can make HTTP requests from a different domain than the one you use for your Flask application written in Python. We will just add a kind of middleware to modify all the responses and add the headers that allow CORS in Flask. ...

November 10, 2020 · 1 min · 193 words · Parzibyte