You are here

function rtf::getPageSettings in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::getPageSettings()
  2. 7 modules/rtf/rtf_export.inc \rtf::getPageSettings()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::getPageSettings()
1 call to rtf::getPageSettings()
rtf::getDocument in ./class_rtf.php

File

./class_rtf.php, line 264

Class

rtf

Code

function getPageSettings() {
  if ($this->page_orientation == 1) {
    $page_buffer = "\\paperw{$this->page_width}\\paperh{$this->page_height}\n";
  }
  else {
    $page_buffer = "\\paperw{$this->page_height}\\paperh{$this->page_width}\\landscape\n";
  }
  $page_buffer .= "\\pgncont\\pgndec\\pgnstarts1\\pgnrestart\n";
  return $page_buffer;
}