Package org.geoforge.demo

Examples of org.geoforge.demo.GfrFileOutputStream


    private void print() {
        LwgDocument document = new LwgDocument(LwgPageSize.A4.rotate());
        try {
            PdfWriter writer =
            PdfWriter.getInstance(document,
                    new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.JTable2Pdf.pdf"));
           
            document.open();
            PdfContentByte cb = writer.getDirectContent();
           
            // Create the graphics as shapes
View Full Code Here


    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.DefaultCell.pdf"));

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

      LwgPdfPTable table = new LwgPdfPTable(3);
View Full Code Here

    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.TableWithImage.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(new LwgCell(LwgImage.getInstance("otsoe.jpg")));
View Full Code Here

    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.MyFirstTable.pdf"));

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

      LwgPdfPTable table = new LwgPdfPTable(3);
View Full Code Here

        // step 1: creation of a document-object
        LwgDocument document = new LwgDocument();
        try {
            // step 2: creation of the writer-object
            PdfWriter.getInstance(document,
                    new GfrFileOutputStream("com.lowagie.examples.objects.tables.alternatives.OldTable.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(3);
            table.setBorderWidth(1);
View Full Code Here

TOP

Related Classes of org.geoforge.demo.GfrFileOutputStream

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.