Examples of addTitle()


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

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

          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

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

            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

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

            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

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

      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

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

      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

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

      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

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

      writer3.setViewerPreferences(PdfWriter.PageLayoutTwoColumnRight
          | PdfWriter.PageModeFullScreen
          | PdfWriter.NonFullScreenPageModeUseThumbs);
      writer4.setViewerPreferences(PdfWriter.DisplayDocTitle);
      writer5.setViewerPreferences(PdfWriter.PrintScalingNone);
      document.addTitle("Julius Caesar");
      document.open();
      // step 4: we grab the ContentByte and do some stuff with it
      document
          .add(new Paragraph(
              "GALLIA est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.  Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis Garumna flumen, a Belgis Matrona et Sequana dividit. Horum omnium fortissimi sunt Belgae, propterea quod a cultu atque humanitate provinciae longissime absunt, minimeque ad eos mercatores saepe commeant atque ea quae ad effeminandos animos pertinent important, proximique sunt Germanis, qui trans Rhenum incolunt, quibuscum continenter bellum gerunt.  Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt.",
View Full Code Here

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

      // 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

Examples of com.sun.messaging.bridge.service.BridgeCmdSharedReplyData.addTitle()

            BridgeCmdSharedReplyData reply = new BridgeCmdSharedReplyData(3, 4, "-");
            String   oneRow[] = new String [3];
            oneRow[0] =  bmr.getString(BridgeCmdSharedResources.I_BGMGR_TITLE_BRIDGE_NAME);
            oneRow[1] =  bmr.getString(BridgeCmdSharedResources.I_BGMGR_TITLE_BRIDGE_TYPE);
            oneRow[2] =  bmr.getString(BridgeCmdSharedResources.I_BGMGR_TITLE_BRIDGE_STATE);
            reply.addTitle(oneRow);

            Bridge b = null;
            for (Map.Entry<String, Bridge> pair: _bridges.entrySet()) {
                b = pair.getValue();
                if (type != null && !b.getType().equals(type)) continue;
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.