getLabelPrintableArea(); if ($record->has('barcode1d')) { static::write1DBarcode( $pdf, $record->get('barcode1d')->content, $record->get('barcode1d')->type, $pa->x1, $pa->y2 - self::BARCODE_SIZE, $pa->w, self::BARCODE_SIZE ); } if ($record->has('title')) { static::writeText( $pdf, $record->get('title'), $pa->x1, $pa->y1, 'freesans', '', self::TITLE_SIZE, 'L', $pa->w, self::TITLE_SIZE, true, 0 ); } $fieldY = $pa->y2 - self::BARCODE_SIZE - self::BARCODE_MARGIN - self::FIELD_SIZE; if ($record->has('fields')) { if ($record->get('fields')->count() >= 1) { $field = $record->get('fields')->first(); static::writeText( $pdf, $field['value'], $pa->x1, $fieldY, 'freemono', 'B', self::FIELD_SIZE, 'C', $pa->w, self::FIELD_SIZE, true, 0, 0.01 ); } } } } ?>