Package com.lowagie.text

Examples of com.lowagie.text.LwgDocument.addAuthor()


          new FileOutputStream("HelloWorldMeta.html"));

      // step 3: we add some metadata open the document
      // standard meta information
      document.addTitle("Hello World example");
            document.addAuthor("Bruno Lowagie");
            document.addSubject("This example explains step 3 in Chapter 1");
            document.addKeywords("Metadata, iText, step 3, tutorial");
            // custom (HTML) meta information
            document.addHeader("Expires", "0");
            // meta information that will be in a comment section in HTML
View Full Code Here


            // creation of the different writers
            PdfWriter.getInstance(document,
                    new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.RepeatingTable.pdf"));
           
            // we add some meta information to the document
            document.addAuthor("Alan Soukup");
            document.addSubject("This is the result of a Test.");
           
            document.open();
           
            Table datatable = new Table(10);
View Full Code Here

      // step 3: we add some metadata open the document
      document.addTitle("Hello World example");
            document.addSubject("This example explains how to add metadata.");
            document.addKeywords("iText, Hello World, step 3, metadata");
            document.addCreator("My program using iText");
            document.addAuthor("Bruno Lowagie");
      document.open();
      // step 4: we add a paragraph to the document
      document.add(new Paragraph("Hello World"));
    } catch (DocumentException de) {
      System.err.println(de.getMessage());
View Full Code Here

  public boolean handleCloseGroup() {
    if (this.text.length() > 0) {   
      LwgDocument doc = this.rtfParser.getDocument();
      if(doc != null) {
        if(this.elementName.equals("author")){
          doc.addAuthor(this.text);
        }
        if(this.elementName.equals("title")){
          doc.addTitle(this.text);
        }
        if(this.elementName.equals("subject")){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.