예제 #1
0
 /**
  * Returns the PDF as a string
  *
  * The file will open a download dialog by default.  The options
  * parameter controls the output.  Accepted options are:
  *
  *
  * 'compress' = > 1 or 0 - apply content stream compression, this is
  *    on (1) by default
  *
  *
  * @param array  $options options (see above)
  *
  * @return string
  */
 function output($options = null)
 {
     $this->save_locale();
     $this->write_log();
     if (is_null($this->_pdf)) {
         return null;
     }
     $output = $this->_pdf->output($options);
     $this->restore_locale();
     return $output;
 }
 /**
  * Returns the PDF as a string
  *
  * The file will open a download dialog by default.  The options
  * parameter controls the output.  Accepted options are:
  *
  *
  * 'compress' = > 1 or 0 - apply content stream compression, this is
  *    on (1) by default
  *
  *
  * @param array  $options options (see above)
  * @return string
  */
 function output($options = null)
 {
     if (is_null($this->_pdf)) {
         return null;
     }
     return $this->_pdf->output($options);
 }
예제 #3
0
 /**
  * Returns the PDF as a string
  *
  * @return string
  */
 function output()
 {
     global $_dompdf_debug;
     if (is_null($this->_pdf)) {
         return null;
     }
     return $this->_pdf->output($_dompdf_debug);
 }