public function __toString() { // Set the PDF header and version. $obj = $this->header . $this->version . "\n" . $this->data; return $obj; }