Add meta information to the PDF

TCPDF does not have a generic method to do this, but limits the possible info to add
to well specific cases

@param string $label  label of the value (Creator, Producter, etc.)
@param string $value  the text to set
195789
function add_info($label, $value) {
		global $_dompdf_warnings;

		switch($label) {
			case 'Creator':
				$this->_pdf->SetCreator($value);
				break;
			case 'Author':
				$this->_pdf->SetAuthor($value);
				break;
			case 'Title':
				$this->_pdf->SetTitle($value);
				break;
			case 'Subject':
				$this->_pdf->SetSubject($value);
				break;
			case 'Keywords':
				$this->_pdf->SetKeywords($value);
				break;
			default:
				$_dompdf_warnings[] = "add_info: label '$label' is not supported by the TCPDF library.";
				break;
		}
	}
317759
public function addOption($text, $isPlain = true, $lang = 'en', $value = null)
    {
        $id = $this->getFieldId($value);

        $this->options[$lang][] = new Label($text, $this->getLocaleKey($value), $isPlain, $lang, $id, $value);
    }
517617
function setPreferences( $label, $value = 0 )
    {
        // this will only work if the label is one of the valid ones.
        if ( is_array( $label ) )
        {
            foreach ( $label as $l => $v )
            {
                $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $l => $v ) );
            }
        }
        else
        {
            $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $label => $value ) );
        }
    }
255973
public function addMessageMetadata(string $key, $value): MetadataMessageInterface
    {
        $payload = $this->getMessagePayloadOrigin()->all();
        $metadata = $this->messageMetadata;
        $metadata[$key] = $value;

        return new static($payload, $metadata);
    }
312596
public function addMessage($message, $label = 'info')
    {
        if ($this->hasCollector('messages')) {
            /** @var \DebugBar\DataCollector\MessagesCollector $collector */
            $collector = $this->getCollector('messages');
            $collector->addMessage($message, $label);
        }
    }
15634
protected function AddUniqueSubmit($label)
    {
        $name = $label . '-' . $this->Content()->GetID();
        $fullLabel = $this->Label($label);
        $this->AddSubmit($name, Trans($fullLabel));
    }
1184689
private function addItem($value, $label, $parentKey = null)
    {
        if ($parentKey) {
            $this->items[$parentKey][$value] = $label;
        } else {
            $this->items[$value] = $label;
        }
    }
519600
public function addSecondaryField(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        return $this;
    }
889499
public function addMeta(string $key, $value): void
	{
		Arr::set($this->meta, $key, $value);
	}
1086546
public static function addMessage($message, $label = 'info', $isString = true): void
    {
        if (self::$debugbar instanceof StandardDebugBar) {
            $collector = self::$debugbar->getCollector('messages');

            if ($collector instanceof MessagesCollector) {
                $collector->addMessage($message, $label, $isString);
            }
        }
    }
1217558
public function setLabel(\google\protobuf\FieldDescriptorProto\Label $value = null)
    {
        $this->label = $value;
    }
1056207
public function addSecondaryFields(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        $this->isValidArray($this->secondaryFields, 5);

        return $this;
    }
898667
protected function renderExceptionDetailCli(string $label, string $value): string
    {
        $result = '  <b>' . $label . ': </b>';
        $result .= wordwrap($value, 75, PHP_EOL . str_repeat(' ', strlen($label) + 4), true);
        $result .= PHP_EOL;
        return $result;
    }
848055
public function defineAttribute($name, $value = null, $label = null)
    {
        if ($label) {
            $this->_attributeLabels[$name] = $label;
        }
        parent::defineAttribute($name, $value);
    }
1070329
public function setAttribute( $name, $value ) {
        if( $name == 'label' ) {
            $this->setLabel( (string)$value );
        } else {
            parent::setAttribute( $name, $value );
        }
    }
1240105
public function setMetaKey($value)
    {
        $this->_validateNotNull('MetaKey', $value);
        $this->_validateString('MetaKey', $value);

        if ($this->data['meta_key'] === $value) {
            return;
        }

        $this->data['meta_key'] = $value;

        $this->_setModified('meta_key');
    }
143169
public void addLabel(Label label) {
        assertNotNull(label);
        labels.add(label);
        label.setParent(this);
    }