Skip to content

A free open source IT asset/license management system

add Config getter for labelwriter_1933081

Godfrey M40fa588d5341
diff --git a/app/Models/Labels/Tapes/Dymo/LabelWriter_1933081.php b/app/Models/Labels/Tapes/Dymo/LabelWriter_1933081.php
index fc84f73699..1017adc0b7 100644
--- a/app/Models/Labels/Tapes/Dymo/LabelWriter_1933081.php
+++ b/app/Models/Labels/Tapes/Dymo/LabelWriter_1933081.php
@@ -67,6 +67,76 @@ class LabelWriter_1933081 extends LabelWriter
return true;
}
+ public function getBarcodeMargin(): float
+ {
+ return self::BARCODE_MARGIN;
+ }
+
+ public function getTagSize(): float
+ {
+ return self::TAG_SIZE;
+ }
+
+ public function getTitleSize(): float
+ {
+ return self::TITLE_SIZE;
+ }
+
+ public function getTitleMargin(): float
+ {
+ return self::TITLE_MARGIN;
+ }
+
+ public function getLabelSize(): float
+ {
+ return self::LABEL_SIZE;
+ }
+
+ public function getLabelMargin(): float
+ {
+ return self::LABEL_MARGIN;
+ }
+
+ public function getFieldSize(): float
+ {
+ return self::FIELD_SIZE;
+ }
+
+ public function getFieldMargin(): float
+ {
+ return self::FIELD_MARGIN;
+ }
+
+ protected function getContentEditorConfig(): array
+ {
+ return [
+ 'barcode_size' => self::TAG_SIZE,
+
+ 'barcode1D_v_align' => 'B',
+ 'barcode1D_placement' => 'text_column',
+
+ 'barcode_2d_size' => 17.0,
+ 'barcode2D_h_align' => 'L',
+ 'barcode2D_v_align' => 'T',
+
+ 'barcode_margin' => $this->getBarcodeMargin(),
+
+ 'tag_font_size' => $this->getTagSize(),
+ 'tag_alignment' => 'C',
+ 'tag_position_mode' => 'under_barcode',
+
+ 'title_font_size' => $this->getTitleSize(),
+ 'title_margin' => $this->getTitleMargin(),
+
+ 'field_label_font_size' => $this->getLabelSize(),
+ 'field_label_margin' => $this->getLabelMargin(),
+
+ 'field_value_font_size' => $this->getFieldSize(),
+ 'field_value_margin' => $this->getFieldMargin(),
+
+ 'text_render_mode' => 'block',
+ ];
+ }
public function preparePDF($pdf) {}
public function write($pdf, $record)