Logo Search packages:      
Sourcecode: acidbase version File versions  Download package

Cpdf::o_viewerPreferences ( id,
action,
options = '' 
)

set the viewer preferences

Definition at line 259 of file class.pdf.php.

References $options.

Referenced by o_catalog().

                                                     {
  if ($action!='new'){
    $o =& $this->objects[$id];
  }
  switch ($action){
    case 'new':
      $this->objects[$id]=array('t'=>'viewerPreferences','info'=>array());
      break;
    case 'add':
      foreach($options as $k=>$v){
        switch ($k){
          case 'HideToolbar':
          case 'HideMenubar':
          case 'HideWindowUI':
          case 'FitWindow':
          case 'CenterWindow':
          case 'NonFullScreenPageMode':
          case 'Direction':
            $o['info'][$k]=$v;
          break;
        }
      }
      break;
    case 'out':

      $res="\n".$id." 0 obj\n".'<< ';
      foreach($o['info'] as $k=>$v){
        $res.="\n/".$k.' '.$v;
      }
      $res.="\n>>\n";
      return $res;
      break;
  }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index