/** * Finish writing the document * After that, nothing should ever be written into the document. */ public function finishDocument() { $this->writer->finish(); }