automatically generate thermal printer file