public function labelSetFormat($format, $unit)
    {
        $this->format = $format;
        $this->paperSize = $this->getFormatValue('paper-size');
        $this->orientation = $this->getFormatValue('orientation');
        $this->fontName = $this->getFormatValue('font-name');
        $this->charSize = $this->getFormatValue('font-size');
        $this->fontStyle = $this->getFormatValue('font-style');
        $this->xNumber = $this->getFormatValue('NX');
        $this->yNumber = $this->getFormatValue('NY');
        $this->metricDoc = $unit;
        $this->marginLeft = $this->getFormatValue('lMargin', true);
        $this->marginTop = $this->getFormatValue('tMargin', true);
        $this->xSpace = $this->getFormatValue('SpaceX', true);
        $this->ySpace = $this->getFormatValue('SpaceY', true);
        $this->width = $this->getFormatValue('width', true);
        $this->height = $this->getFormatValue('height', true);
        $this->paddingLeft = $this->getFormatValue('lPadding', true);
        $this->paddingTop = $this->getFormatValue('tPadding', true);
        $this->paper_dimensions = 'A4';
    }