/** * Writes the footer. * * @param int $xrefOffset */ private function writeFooter($xrefOffset) { $this->objectWriter->ensureBlankLine(); $this->objectWriter->writeRawLine('startxref'); $this->objectWriter->writeRawLine((string) $xrefOffset); $this->objectWriter->writeRawLine("%%%EOF"); }