addPage(); * $doc->addContent('Hallo, %%wir%% benutzen :studip: -Formatierung.'); * $doc->dispatch("test_pdf"); * //lines following dispatch won't be accessed anymor, because dispatch * //cancels all other output. * */ interface ExportDocument { /** * Adding a new page to write new content on it. Must be called at least once * before any call of addContent($text). */ public function addPage(); /** * Adding an area of Stud.IP formatted content. */ public function addContent($content); /** * Outputs the content as a file with MIME-type and aborts any other output. * @param string $filename name of the future file without the extension. */ public function dispatch($filename); /** * Saves the content as a file in the filesystem and returns a Stud.IP-document object. * @param string $filename name of the future file without the extension. * @param mixed $folder_id md5-id of a given folder in database or null for nothing * @return StudipDocument of the exported file or false if creation of StudipDocument failed. */ public function save($filename, $folder_id = null); }