Example #1
0
 public function setMetadataValue($name, $value)
 {
     switch ($name) {
         case 'Trapped':
             $value = $value === 'null' ? null : Util::convertBooleanValue($value);
             $this->getZendPdf()->properties[$name] = $value;
             break;
         case 'CreationDate':
         case 'ModDate':
             $value = PdfDocument::pdfDate(strtotime($value));
             $this->getZendPdf()->properties[$name] = $value;
             break;
         case 'Title':
         case 'Author':
         case 'Subject':
         case 'Keywords':
         case 'Creator':
             $this->getZendPdf()->properties[$name] = $value;
             break;
     }
 }