diff --git a/configuration/config.toml b/configuration/config.toml index 4b16436..7191042 100644 --- a/configuration/config.toml +++ b/configuration/config.toml @@ -3,6 +3,7 @@ [defaults] signature = "" + # Printer settings [printer] upload_folder = "src/static/uploads" @@ -14,11 +15,14 @@ waiting_time = 5 profile = "TM-T20III" label_type = 80 # 80 or 58 ( label width in mm ) align_text = "center" +text_max_length = 4096 +signature_max_length = 256 [printer.brother] # Configurations for Brother printers label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types - +text_max_length = 4096 +signature_max_length = 256 # Raspberry Pi Configuration [rpi] diff --git a/configuration/config.toml.sample b/configuration/config.toml.sample index 3d95bdc..7cfeb56 100644 --- a/configuration/config.toml.sample +++ b/configuration/config.toml.sample @@ -16,10 +16,14 @@ waiting_time = 5 profile = "TM-T20III" label_type = 80 # 80 or 58 ( label width in mm ) align_text = "center" +text_max_length = 4096 +signature_max_length = 256 [printer.brother] # Configurations for Brother printers label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types +text_max_length = 4096 +signature_max_length = 256 # Raspberry Pi Configuration [rpi] diff --git a/src/templates/api.html b/src/templates/api.html index b02aeb6..4d7241a 100644 --- a/src/templates/api.html +++ b/src/templates/api.html @@ -5,6 +5,6 @@