Package com.lowagie.text

Examples of com.lowagie.text.Document.addTitle()


        baos.reset();
        context = new PdfContext(writer);
        context.initSize(page.getBounds());
      }
      // Actual drawing
      document.addTitle("Geomajas");
      // second pass to layout
      page.layout(context);
      // finally render
      page.render(context);
      document.add(context.getImage());
View Full Code Here


          HomePDFPrinter.class, "pdfDocument.creator");   
      pdfDocument.addCreator(pdfDocumentCreator);
      pdfDocument.addCreationDate();
      String homeName = this.home.getName();
      if (homeName != null) {
        pdfDocument.addTitle(this.controller.getContentManager().getPresentationName(
            homeName, ContentManager.ContentType.PDF));
      }
     
      PdfContentByte pdfContent = pdfWriter.getDirectContent();
      HomePrintableComponent printableComponent =
View Full Code Here

            HeaderFooter footer = DroolsDocsComponentFactory.createFooter( packageData.getName() );

            document.setFooter( footer );

            document.addTitle( packageData.getName().toUpperCase() );
            document.open();

            // First page, documentation info.           
            DroolsDocsComponentFactory.createFirstPage( document,
                                                        currentDate,
View Full Code Here

            HeaderFooter footer = DroolsDocsComponentFactory.createFooter( packageData.getName() );

            document.setFooter( footer );

            document.addTitle( packageData.getName().toUpperCase() );
            document.open();

            // First page, documentation info.           
            DroolsDocsComponentFactory.createFirstPage( document,
                                                        currentDate,
View Full Code Here

      if (css != null) {
        document.add(new Header(HtmlTags.STYLESHEET, css.toString()));
      }
      Object title = reader.getInfo().get("Title");
      if (title == null)
        document.addTitle("Index for " + src.getName());
      else
        document.addKeywords("Index for '" + title + "'");
      Object keywords = reader.getInfo().get("Keywords");
      if (keywords != null)
        document.addKeywords((String)keywords);
View Full Code Here

      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")){
          doc.addSubject(this.text);
        }
      } else {
View Full Code Here

      if (css != null) {
        document.add(new Header(HtmlTags.STYLESHEET, css.toString()));
      }
      Object title = reader.getInfo().get("Title");
      if (title == null)
        document.addTitle("Index for " + src.getName());
      else
        document.addKeywords("Index for '" + title + "'");
      Object keywords = reader.getInfo().get("Keywords");
      if (keywords != null)
        document.addKeywords((String)keywords);
View Full Code Here

      doc.setPageSize(pageSize);
      doc.addCreationDate();
      doc.addCreator(it.uniroma1.dptu.stan.Main.getInfo());
      doc.addProducer();

      doc.addTitle(data.getDocument().getBaseFilename());

      javax.print.attribute.standard.MediaPrintableArea mediaPrintableArea =
    (javax.print.attribute.standard.MediaPrintableArea)docAttributeSet.get(
        javax.print.attribute.standard.MediaPrintableArea.class
    )
View Full Code Here

      HtmlWriter.getInstance(document,
          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");
View Full Code Here

      // and directs a PDF-stream to a file
      PdfWriter.getInstance(document,
          new FileOutputStream("HelloWorldMeta.pdf"));

      // 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();
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.