Exemplo n.º 1
0
 /**
  * Set permissions for PDF document
  * 
  * @param int $permissions 
  * @return void
  */
 protected function setPermissions(ezcDocumentPdfOptions $options)
 {
     $flag = array();
     foreach ($this->permissionMapping as $own => $tcpdf) {
         if ($options->permissions & $own) {
             $flag[] = $tcpdf;
         }
     }
     $this->document->setProtection($flag, $this->options->userPassword, $this->options->ownerPassword);
 }