You are here

public function rtf::getPageSettings in Bibliography Module 7

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

Page display settings.

1 call to rtf::getPageSettings()
rtf::getDocument in modules/rtf/rtf_export.inc
Ouput the RTF file.

File

modules/rtf/rtf_export.inc, line 324

Class

rtf

Code

public 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;
}