本文整理汇总了PHP中Canvas::output方法的典型用法代码示例。如果您正苦于以下问题:PHP Canvas::output方法的具体用法?PHP Canvas::output怎么用?PHP Canvas::output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Canvas
的用法示例。
在下文中一共展示了Canvas::output方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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)
{
$this->save_locale();
$this->write_log();
if (is_null($this->_pdf)) {
return null;
}
$output = $this->_pdf->output($options);
$this->restore_locale();
return $output;
}
示例2: 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: output
/**
* 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);
}