本文整理汇总了PHP中FPDF::_putcatalog方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::_putcatalog方法的具体用法?PHP FPDF::_putcatalog怎么用?PHP FPDF::_putcatalog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FPDF
的用法示例。
在下文中一共展示了FPDF::_putcatalog方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function _putcatalog()
{
parent::_putcatalog();
if (is_int(strpos($this->DisplayPreferences, 'FullScreen'))) {
$this->_out('/PageMode /FullScreen');
}
if ($this->DisplayPreferences) {
$this->_out('/ViewerPreferences<<');
if (is_int(strpos($this->DisplayPreferences, 'HideMenubar'))) {
$this->_out('/HideMenubar true');
}
if (is_int(strpos($this->DisplayPreferences, 'HideToolbar'))) {
$this->_out('/HideToolbar true');
}
if (is_int(strpos($this->DisplayPreferences, 'HideWindowUI'))) {
$this->_out('/HideWindowUI true');
}
if (is_int(strpos($this->DisplayPreferences, 'DisplayDocTitle'))) {
$this->_out('/DisplayDocTitle true');
}
if (is_int(strpos($this->DisplayPreferences, 'CenterWindow'))) {
$this->_out('/CenterWindow true');
}
if (is_int(strpos($this->DisplayPreferences, 'FitWindow'))) {
$this->_out('/FitWindow true');
}
$this->_out('>>');
}
}
示例2:
function _putcatalog()
{
parent::_putcatalog();
if (!empty($this->javascript)) {
$this->_out('/Names <</JavaScript ' . $this->n_js . ' 0 R>>');
}
}
示例3:
function _putcatalog()
{
parent::_putcatalog();
if (count($this->outlines) > 0) {
$this->_out('/Outlines ' . $this->OutlineRoot . ' 0 R');
$this->_out('/PageMode /UseOutlines');
}
}
示例4:
function _putcatalog()
{
parent::_putcatalog();
$p = $this->n_ocg_print . ' 0 R';
$v = $this->n_ocg_view . ' 0 R';
$as = "<</Event /Print /OCGs [{$p} {$v}] /Category [/Print]>> <</Event /View /OCGs [{$p} {$v}] /Category [/View]>>";
$this->_out("/OCProperties <</OCGs [{$p} {$v}] /D <</ON [{$p}] /OFF [{$v}] /AS [{$as}]>>>>");
}
示例5:
function _putcatalog()
{
parent::_putcatalog();
// Disable the page scaling option in the printing dialog
$this->_out('/ViewerPreferences <</PrintScaling /None>>');
}
示例6:
function _putcatalog() {
parent::_putcatalog();
if (isset($this->javascript)) {
$this->_out('/Names <</JavaScript '.($this->n_js).' 0 R>>');
}
}
示例7:
function _putcatalog()
{
parent::_putcatalog();
if (isset($this->javascript)) {
$this->_out('/Names <</JavaScript ' . $this->n_js . ' 0 R>>');
}
if (count($this->outlines) > 0) {
$this->_out('/Outlines ' . $this->OutlineRoot . ' 0 R');
$this->_out('/PageMode /UseOutlines');
}
}
示例8: _putcatalog
public function _putcatalog()
{
parent::_putcatalog();
if (count($this->pdf_bookmarks) > 0) {
$this->_out('/Outlines ' . $this->pdf_bookmarks_outline_object_n . ' 0 R');
$this->_out('/PageMode /UseOutlines');
}
}