File pdfdoc = new File(datei);
Double gesamt=0.0;
try {
Gast gast = buchung.getGast();
Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream(pdfdoc));
document.open();
Phrase Hoteldaten = new Phrase();
Hoteldaten.setFont(FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, new Color(0, 0, 0)));
Hoteldaten.add(GUI_main.jTextArea_Hoteladresse.getText()+"\n");
Phrase Hoteldaten2 = new Phrase();
Hoteldaten2.setFont(FontFactory.getFont(FontFactory.HELVETICA, 8, Font.NORMAL, new Color(0, 0, 0)));
Hoteldaten2.add("Telefon: "+GUI_main.jText_Telefon.getText()+" Fax: "+GUI_main.jText_Fax.getText()+"\n");
Hoteldaten2.add("Mail: "+GUI_main.jText_mail.getText()+" Web: "+GUI_main.jText_web.getText());
Paragraph Absatz = new Paragraph(Hoteldaten);
Absatz.add(Hoteldaten2);
Absatz.setAlignment(Paragraph.ALIGN_CENTER);
Phrase Datum = new Phrase();
Datum.add(Pdf.LZ);
Datum.add(Pdf.LZ);
Datum.add(stag + "." + smonat + "." + jahr);
Datum.add(Pdf.LZ);
Datum.add(Pdf.LZ);
Datum.add("BuchungsNr.: " + buchung.getID());
Paragraph Datum_Absatz = new Paragraph(Datum);
Datum_Absatz.setAlignment(Paragraph.ALIGN_RIGHT);
Phrase Gast = new Phrase();
Gast.add(Pdf.LZ);
Gast.add(Pdf.LZ);
Gast.add(Pdf.LZ);
Gast.add(gast.getTitel()+"\n");
Gast.add(gast.getVorname()+" "+gast.getName()+"\n");
Gast.add(gast.getStrasse()+" "+gast.getHausnummer()+"\n");
Gast.add(gast.getPLZ()+" "+gast.getOrt()+"\n");
Gast.add(Pdf.LZ);
Paragraph Gast_Absatz = new Paragraph(Gast);
Gast_Absatz.setAlignment(Paragraph.ALIGN_LEFT);
PdfPTable table = new PdfPTable(4);