/** * Set metadata * * Set document meta data. The meta data types are identified by a list of * keys, common to PDF, like: title, author, subject, created, modified. * * The values are passed like embedded in the docbook document and might * need to be reformatted. * * @param string $key * @param string $value * @return void */ public function setMetaData($key, $value) { if ($this->document === null) { $this->initialize(); } switch ($key) { case 'title': $this->document->setTitle($value); break; case 'author': $this->document->setAuthor($value); break; case 'subject': $this->document->setSubject($value); break; case 'created': case 'modified': // Date information cannot be set with TCPDF. break; } }