[IMP] Add a Raw ZPL2 component

This commit is contained in:
Florent de Labarre
2018-01-23 09:38:50 +01:00
committed by Lois Rilo
parent a297ab11b8
commit 041ee4cd82
4 changed files with 41 additions and 7 deletions

View File

@@ -110,6 +110,8 @@ class PrintingLabelZpl2(models.Model):
label_data.font_data(
component_offset_x, component_offset_y,
barcode_arguments, data)
elif component.component_type == 'zpl2_raw':
label_data._write_command(data)
elif component.component_type == 'rectangle':
label_data.graphic_box(
component_offset_x, component_offset_y, {