Examples of GfrFileOutputStream


Examples of org.geoforge.demo.GfrFileOutputStream

       
        try {
            // creation of the different writers
            PdfWriter.getInstance(
                    document,
                    new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.TablePdfPTable.pdf"));
           
            RtfWriter2.getInstance(
                    document,
                    new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.TablePdfPTable.rtf"));
            // open the document
            document.open();
            // add content
            SimpleTable table = new SimpleTable();
            table.setCellpadding(5);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    LwgDocument document = new LwgDocument();
    try {
      // step 2:
      // we create a writer that listens to the document
      PdfWriter writer = PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.fonts.styles.FontColor.pdf"));

      // step 3: we open the document
      document.open();
      // step 4:
      LwgFont red = FontFactory.getFont(FontFactory.HELVETICA, LwgFont.DEFAULTSIZE, LwgFont.BOLD, new Color(0xFF, 0x00, 0x00));
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    try {
      // step 2:
      // we create a writer that listens to the document
      // and directs a PDF-stream to a file
      PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.MyFirstTable.pdf"));
      // step 3: we open the document
      document.open();
      // step 4: we create a table and add it to the document
      Table table = new Table(2, 2); // 2 rows, 2 columns
      table.addCell("0.0");
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step1
    LwgDocument document = new LwgDocument(LwgPageSize.A4, 2, 2, 2, 2);
    try {
      // step2
      PdfWriter writer = PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.pdfptable.WriteSelectedRows.pdf"));
      // step3
      document.open();
      // step4
      LwgPdfPTable table = new LwgPdfPTable(4);
            table.getDefaultCell().setBorder(LwgRectangle.LEFT | LwgRectangle.RIGHT);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

      {

         // step 2: creation of the writer
         PdfWriter writer = PdfWriter.getInstance(
                 document,
                 new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ComplexText.pdf"));

         // step 3: we open the document
         document.open();

         // step 4: we grab the ContentByte and do some stuff with it
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    LwgDocument document = new LwgDocument();
    try {
      // step 2:
      // we create a writer that listens to the document
      PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.pdf"));
      HtmlWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.html"));
      RtfWriter2.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.rtf"));

      // step 3: we open the document
      document.open();
      // step 4:
      LwgFont font;
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    LwgDocument document = new LwgDocument();
    try {
      // step 2:
      // we create a writer that listens to the document
      PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.fonts.styles.FontStylePropagation.pdf"));

      // step 3: we open the document
      document.open();
      // step 4:
      LwgPhrase myPhrase = new LwgPhrase("Hello 1! ", new LwgFont(LwgFont.TIMES_ROMAN, 8, LwgFont.BOLD));
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

        LwgDocument document = new LwgDocument(LwgPageSize.A4.rotate(), 50, 50, 50, 50);
       
        try {
            // 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.");
           
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step1
    LwgDocument document = new LwgDocument(LwgPageSize.A4, 50, 50, 50, 50);
    try {
      // step2
      PdfWriter writer = PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.TableBorders.pdf"));
      // step3
      document.open();
      // step4
     
      // page 1
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step1
    LwgDocument document = new LwgDocument(LwgPageSize.A4);
    try {
      // step2
      PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.CellHeights.pdf"));
      // step3
      document.open();
      // step4
      LwgPdfPTable table = new LwgPdfPTable(2);
      table.setExtendLastRow(true);
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.