if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 $result = $db->query($sql);
 $data = $db->fetch_array($result, 1);
 $test = content_split_all($data["content"]);
 $mutate["H"] = array("H");
 #$mutate["B"] = array("");
 $mutate["P"] = array("P");
 $pdf = new PDFlib();
 $pdf->begin_document("", "lang=de tagged=true");
 $pdf->set_info("Creator", "hello.php");
 $pdf->set_info("Author", "STI");
 $pdf->set_info("Title", "Hello world (PHP)!");
 $pdf->set_parameter("autospace", "true");
 $doc = $pdf->begin_item("Document", "Title=Buffy");
 $pdf->begin_page_ext(0, 0, "width=a4.width height=a4.height");
 $font = $pdf->load_font("Helvetica", "unicode", "");
 $pdf->setfont($font, 10);
 $fontname = $pdf->get_parameter("fontname", 0);
 $count = 0;
 $i = 0;
 foreach ($tag_sort as $key => $value) {
     if (array_key_exists($value["para"][0], $mutate)) {
         if ($value["start"] > $count) {
             $out[$i] = substr($data["content"], $value["start"], $value["end"] - $value["start"]);
             $count = $value["end"];
             $buffy = 0;
         } else {
             if ($buffy == -1) {
                 $out[$i - 1] = substr($data["content"], $ende, $value["start"] - $ende);