Package com.itextpdf.text

Examples of com.itextpdf.text.Anchor


                    }
                    break;
                }
                case Element.ANCHOR: {
                  leadingCount++;
                    Anchor anchor = (Anchor) element;
                    String url = anchor.getReference();
                    leading = anchor.getLeading();
                    if (url != null) {
                        anchorAction = new PdfAction(url);
                    }
                    // we process the element
                    element.process(this);
View Full Code Here


       
        //Mail
        Phrase adressPh = new Phrase();
 
        adressPh.add(new Chunk("E-Mail:   ", adressFont));
          Anchor emailLink = new Anchor("kontakt@muellerpc.de", new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.UNDERLINE, new BaseColor(Color.BLUE)));
          emailLink.setReference("mailto:kontakt@muellerpc.de");
        adressPh.add(emailLink);
     
      table.addCell(adressPh);
      table.addCell("");
      table.addCell("");
View Full Code Here

                    }
                    break;
                }
                case Element.ANCHOR: {
                  leadingCount++;
                    Anchor anchor = (Anchor) element;
                    String url = anchor.getReference();
                    leading = anchor.getLeading();
                    if (url != null) {
                        anchorAction = new PdfAction(url);
                    }
                    // we process the element
                    element.process(this);
View Full Code Here

                    }
                    break;
                }
                case Element.ANCHOR: {
                  leadingCount++;
                    Anchor anchor = (Anchor) element;
                    String url = anchor.getReference();
                    leading = anchor.getLeading();
                    if (url != null) {
                        anchorAction = new PdfAction(url);
                    }
                    // we process the element
                    element.process(this);
View Full Code Here

   * Creates an Anchor object based on a list of properties.
   * @param attributes
   * @return an Anchor
   */
  public static Anchor getAnchor(Properties attributes) {
    Anchor anchor = new Anchor(getPhrase(attributes));
    String value;
    value = attributes.getProperty(ElementTags.NAME);
    if (value != null) {
      anchor.setName(value);
    }
    value = (String) attributes.remove(ElementTags.REFERENCE);
    if (value != null) {
      anchor.setReference(value);
    }
    return anchor;
  }
View Full Code Here

    paragraph.setAlignment(Element.ALIGN_CENTER);
    paragraph.add(new Chunk("\r\n\r\n\r\n\r\n", fontHelvetica24BoldItalic));
    // paragraph.add(new Chunk(person.getValue(Person.NAME),
    // secondTitleFontItalic));
    Chunk chunk = new Chunk(person.getValue(Person.NAME), fontHelvetica24BoldItalic);
    Anchor anchor = new Anchor(chunk);
    anchor.setReference("#p-" + person.getXREFID());
    paragraph.add(anchor);
    document.add(paragraph);
  }
View Full Code Here

    paragraph.add(new Chunk("F�r die Richtigkeit der hier gemachten Angaben wird keinerlei Gew�hr �bernommen. "));
    String eMail = OptionData.instance.getString(OptionData.EXPORT_MAIL);
    if (eMail != null && eMail.trim().length() > 0) {
      paragraph.add(new Chunk("Sollten Sie Fehler erkennen oder Erg�nzungen zu den gemachten Angaben haben, "));
      paragraph.add(new Chunk("senden Sie diese bitte an die folgende E-Mailadresse:\r\n\r\n"));
      Anchor iref = new Anchor(new Chunk(eMail, fontTimes12ItalicBlue));
      iref.setReference("mailto:" + eMail);
      paragraph.add(iref);
      paragraph.add(new Chunk("\r\n\r\nSie werden darauf hin eine aktualisierte Version dieser PDF-Datei "));
      paragraph.add(new Chunk("per E-Mail erhalten."));
      paragraph.add(new Chunk("\r\n\r\nVielen Dank!"));
    }
View Full Code Here

    paragraph.setFont(fontHelvetica12);
    paragraph.add(new Chunk("\r\n\r\nIn dieser Datei stehen die Stammdaten von insgesamt "));
    paragraph.add(new Chunk(persons.size() + " Personen, "));
    paragraph.add(new Chunk("die erste aufgelistete Person ist "));
    Chunk chunk = new Chunk(person.getValue(Person.NAME), fontHelvetica12Italic);
    Anchor anchor = new Anchor(chunk);
    anchor.setReference("#p-" + person.getXREFID());
    paragraph.add(anchor);
    paragraph.add(new Chunk(". Alle weiteren Personen sind �ber ihre 'verwandtschaftliche N�he' sortiert. "));
    paragraph.add(new Chunk("Soweit dies m�glich ist, l�sst sich innerhalb dieser Dateien navigieren."));
    document.add(paragraph);

    paragraph = new Paragraph();
    paragraph.setFont(fontHelvetica12Italic);
    paragraph.add(new Chunk("\r\n\r\nAnh�nge:\r\n\r\n", fontHelvetica12Bold));
    anchor = new Anchor(new Chunk("Anhang A: " + ANHANG_A_PERSONEN_SORTIERT_NACH_GEBURTSJAHR));
    anchor.setReference("#anhang-a");
    paragraph.add(anchor);
    paragraph.add(new Chunk("\r\n"));
    anchor = new Anchor(new Chunk("Anhang B: " + ANHANG_B_VERSTORBENE_PERSONEN_SORTIERT_NACH_ALTER));
    anchor.setReference("#anhang-b");
    paragraph.add(anchor);
    paragraph.add(new Chunk("\r\n"));
    anchor = new Anchor(new Chunk("Anhang C: " + ANHANG_C_PERSONEN_SORTIERT_NACH_GEBURTSTAG_OHNE_JAHR));
    anchor.setReference("#anhang-c");
    paragraph.add(anchor);
    paragraph.add(new Chunk("\r\n"));
    anchor = new Anchor(new Chunk("Anhang D: " + ANHANG_D_BILDER));
    anchor.setReference("#anhang-d");
    paragraph.add(anchor);
    document.add(paragraph);
  }
View Full Code Here

        paragraph.add(new Chunk("\r\n"));
        document.add(paragraph);
        first = false;
      }
      Chunk imageChunk = new Chunk(image, 0, 0, true);
      Anchor imageAnchor = new Anchor(imageChunk);
      imageAnchor.setReference("#anhang-d-" + listImages_D.size());
      // imageAnchor.setReference("#i-" + person.getXREFID());
      listImages_D.add(image);
      listPersons_D.add(person);
      document.add(imageAnchor);
      document.add(new Phrase(" "));
View Full Code Here

        else {
          s = "Partner/in";
        }
      }
      Chunk chunk = new Chunk("  " + person.getValueView(Person.NAME), fontTimes12Blue);
      Anchor anchor = new Anchor(chunk);
      anchor.setReference("#p-" + person.getXREFID());
      paragraph.add(anchor);
      paragraph.add(new Chunk(" ist " + s + " von "));
      chunk = new Chunk(currPerson.getValueView(Person.NAME), fontTimes12Blue);
      anchor = new Anchor(chunk);
      anchor.setReference("#p-" + currPerson.getXREFID());
      paragraph.add(anchor);
      paragraph.add(new Chunk(".\r\n"));

      person = currPerson;
    }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.Anchor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.