Posts

Showing posts from May, 2015

Thermal Printer Perl Library

Image
What Last month, I developed a web GUI for my Raspberry Pi thermal printer. Despite extensive testing, I struggled with some fundamental tasks, such as printing text with diacritics and creating custom characters. Existing libraries were available in Python and C, but Perl options were limited and often lacked the methods I needed. This prompted me to create my own Perl library for the Adafruit thermal printer. What I Did I created a Perl library for the Adafruit thermal printer by thoroughly reviewing the printer's documentation and implementing methods for nearly every command mentioned. The library includes standard functionalities for altering fonts, generating barcodes, and printing images. Additionally, I added some custom features: Printing Images with Gradient Effects : This feature allows you to print images with a gradient effect, enhancing visual appeal. Aligning Images : If an image is narrower than the printing paper, this method adjusts its alignment. Registering Cust