You are here

function rtf::getDocument in Bibliography Module 6

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

File

./class_rtf.php, line 186

Class

rtf

Code

function getDocument() {
  $this->buffer .= "{";

  // Header
  $this->buffer .= $this
    ->getHeader();

  // Font table
  $this->buffer .= $this
    ->getFontTable();

  // Colour table
  $this->buffer .= $this
    ->getColourTable();

  // File Information
  $this->buffer .= $this
    ->getInformation();

  // Default font values
  $this->buffer .= $this
    ->getDefaultFont();

  // Page display settings
  $this->buffer .= $this
    ->getPageSettings();

  // Parse the text into RTF
  $this->buffer .= $this
    ->parseDocument();
  $this->buffer .= "}";
  header("Content-Type: text/enriched\n");
  header("Content-Disposition: attachment; filename=rtf.rtf");
  echo $this->buffer;
}