Examples of GfrFileOutputStream


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.pdfptable.TableEvents1.pdf"));
            // step3
            document.open();
            // step4
            LwgPdfPTable table = new LwgPdfPTable(4);
            table.getDefaultCell().setBorder(LwgRectangle.NO_BORDER);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step 1
    LwgDocument document = new LwgDocument();
    try {
      // step 2
      PdfWriter.getInstance(document,
                 new GfrFileOutputStream("com.lowagie.examples.objects.tables.pdfptable.FloatingBoxes.pdf"));
      // step 3
      document.open();
      // step 4
      LwgPdfPTable table = new LwgPdfPTable(2);
      table.setTableEvent(floatingBoxes);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step1
    LwgDocument document = new LwgDocument(LwgPageSize.A4, 10, 10, 10, 10);
    try {
      // step2
      PdfWriter writer = PdfWriter.getInstance(document,
                 new GfrFileOutputStream("com.lowagie.examples.objects.tables.pdfptable.SplitTable.pdf"));
      // step3
      document.open();
      // step4

            PdfContentByte cb = writer.getDirectContent();
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.pdfptable.CellEvents.pdf"));
      // step3
      document.open();
      // step4
      CellEvents event = new CellEvents();
      LwgImage im = LwgImage.getInstance("otsoe.jpg");
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

      System.out.println("JFreeChart example");
      /** the following line is a workaround for JDK 1.5 (fix by Adriaan Joubert) */
      org.jfree.text.TextUtilities.setUseDrawRotatedStringWorkaround(false);
      try
      {
         LwgUtilJFreeChartToPdf.convertToPdf(getBarChart(), 400, 600, (new GfrFileOutputStream("barchart.pdf")).getName());
         LwgUtilJFreeChartToPdf.convertToPdf(getPieChart(), 400, 600, (new GfrFileOutputStream("piechart.pdf")).getName());
         LwgUtilJFreeChartToPdf.convertToPdf(getXYChart(), 400, 600, (new GfrFileOutputStream("xychart.pdf")).getName());
      }
      catch (FileNotFoundException ex)
      {
         Logger.getLogger(JFreeChartExample.class.getName()).log(Level.SEVERE, null, ex);
      }
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.pdfptable.TableEvents2.pdf"));
            // step3
            document.open();
            // step4
            LwgPdfPTable table = new LwgPdfPTable(4);
            table.getDefaultCell().setBorder(LwgRectangle.NO_BORDER);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    LwgDocument document = new LwgDocument(LwgPageSize.A4);

    try {
      // step 2
      PdfWriter writer = PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.pdfptable.Tables.pdf"));
      float width = document.getPageSize().getWidth();
      float height = document.getPageSize().getHeight();
      // step 3
      document.open();
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.pdfptable.VerticalTextInCells.pdf"));
            // step3
            document.open();
            // step4
           
            // make a PdfTemplate with the vertical text
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

    // step1
    LwgDocument document = new LwgDocument(LwgPageSize.A4.rotate(), 10, 10, 10, 10);
    try {
      // step2
      PdfWriter.getInstance(document,
          new GfrFileOutputStream("com.lowagie.examples.objects.tables.pdfptable.FragmentTable.pdf"));
      // step3
      document.open();
      // step4
      LwgFont font = FontFactory.getFont("Helvetica", 8, LwgFont.BOLD,
          Color.BLACK);
View Full Code Here

Examples of org.geoforge.demo.GfrFileOutputStream

        LwgDocument document = new LwgDocument(LwgPageSize.A4, 50, 50, 50, 50);
        try {
          // step 2
            PdfWriter.getInstance(
                    document,
                    new GfrFileOutputStream("com.lowagie.examples.fonts.styles.FixedFontWidth.pdf"));
            // step 3
            document.open();
            // step 4
            BaseFont bf = BaseFont.createFont("Helvetica", "winansi", false, false, null, null);
            int widths[] = bf.getWidths();
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.