Mpdf

Páginas: 219 (54734 palabras) Publicado: 25 de octubre de 2012
keywords)) { $m .= ' '.$this->keywords.''."\n"; }
$m .= ' '."\n";

$m .= ' '."\n";
$m .= ' '.$CreationDate.''."\n";
$m .= ' '.$CreationDate.''."\n";
$m .= ' '.$CreationDate.''."\n";
if(!empty($this->creator)) { $m .= ' '.$this->creator.''."\n"; }
$m .= ' '."\n";

// DC elements
$m .= ' '."\n";
$m .= ' application/pdf'."\n";if(!empty($this->title)) {
$m .= '

'.$this->title.'

'."\n";
}
if(!empty($this->keywords)) {
$m .= '

'.$this->keywords.'

'."\n";
}
if(!empty($this->subject)) {
$m .= '

'.$this->subject.'

'."\n";
}
if(!empty($this->author)) {
$m .= '

'.$this->author.'

'."\n";
}
$m .= ''."\n";


// This bit is specific to PDFX-1a
if ($this->PDFX) {
$m .= ' '."\n";
}

// This bit is specific to PDFA-1b
else if ($this->PDFA) {
$m .= ' '."\n";
$m .= ' 1'."\n";
$m .= ' B'."\n";
$m .= ' 2005'."\n";
$m .= ' '."\n";
}

$m .= ' '."\n";
$m .= ' uuid:'.$uuid.''."\n";
$m .= ' '."\n";
$m .= ' '."\n";
$m .= ' '."\n";
$m .=str_repeat(str_repeat(' ',100)."\n",20); // 2-4kB whitespace padding required
$m .= ''; // "r" read only
$this->_out('');
$this->_putstream($m);
$this->_out('endobj');
}

function _putoutputintent() {
$this->_newobj();
$this->OutputIntentRoot = $this->n;
$this->_out('>');
$this->_out('endobj');

if ($this->PDFX && !$this->ICCProfile) { return; } // no ICCProfile embedded$this->_newobj();
if ($this->ICCProfile)
$s = file_get_contents(_MPDF_PATH.'iccprofiles/'.$this->ICCProfile.'.icc');
else
$s = file_get_contents(_MPDF_PATH.'iccprofiles/sRGB_IEC61966-2-1.icc');
if ($this->compress) { $s = gzcompress($s); }
$this->_out('>');
$this->_putstream($s);
$this->_out('endobj');
}


function _putcatalog() {
$this->_out('/Type /Catalog');$this->_out('/Pages 1 0 R');
if($this->ZoomMode=='fullpage') $this->_out('/OpenAction [3 0 R /Fit]');
elseif($this->ZoomMode=='fullwidth') $this->_out('/OpenAction [3 0 R /FitH null]');
elseif($this->ZoomMode=='real') $this->_out('/OpenAction [3 0 R /XYZ null null 1]');
elseif(!is_string($this->ZoomMode)) $this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']');
else$this->_out('/OpenAction [3 0 R /XYZ null null null]');
if($this->LayoutMode=='single') $this->_out('/PageLayout /SinglePage');
elseif($this->LayoutMode=='continuous') $this->_out('/PageLayout /OneColumn');
elseif($this->LayoutMode=='twoleft') $this->_out('/PageLayout /TwoColumnLeft');
elseif($this->LayoutMode=='tworight') $this->_out('/PageLayout /TwoColumnRight');elseif($this->LayoutMode=='two') {
if ($this->mirrorMargins) { $this->_out('/PageLayout /TwoColumnRight'); }
else { $this->_out('/PageLayout /TwoColumnLeft'); }
}

/*-- BOOKMARKS --*/
if(count($this->BMoutlines)>0) {
$this->_out('/Outlines '.$this->OutlineRoot.' 0 R');
$this->_out('/PageMode /UseOutlines');
}
/*-- END BOOKMARKS --*/
if(is_int(strpos($this->DisplayPreferences,'FullScreen')))$this->_out('/PageMode /FullScreen');

// Metadata
if ($this->PDFA || $this->PDFX) {
$this->_out('/Metadata '.$this->MetadataRoot.' 0 R');
}
// OutputIntents
if ($this->PDFA || $this->PDFX || $this->ICCProfile) {
$this->_out('/OutputIntents ['.$this->OutputIntentRoot.' 0 R]');
}

/*-- FORMS --*/
if (count($this->form->forms)>0) {
$this->form->_putFormsCatalog();
}/*-- END FORMS --*/
if ( isset($this->js) ) {
$this->_out('/Names > ');
}

if($this->DisplayPreferences || $this->directionality == 'rtl' || $this->mirrorMargins) {
$this->_out('/ViewerPreferences>');
}
if ($this->hasOC) { // mPDF 5.3.45
// mPDF 5.3.41 Visibility
$p=$this->n_ocg_print.' 0 R';
$v=$this->n_ocg_view.' 0 R';
$h=$this->n_ocg_hidden.' 0 R';
$as=" ";...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • mpdf
  • Mpdf
  • mpdf
  • Mpdf
  • Mpdf

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS