diff --git a/escpos/printer.py b/escpos/printer.py index 986d366..fd4e9e8 100644 --- a/escpos/printer.py +++ b/escpos/printer.py @@ -176,6 +176,10 @@ class File(Escpos): if self.device is None: print("Could not open the specified file %s" % self.devfile) + def flush(self): + """Flush printing content""" + self.device.flush() + def _raw(self, msg): """ Print any command sent in raw format """