Package com.lowagie.text

Examples of com.lowagie.text.Paragraph


        }
        context.pop();
        final StyleContext cellContext = getCurrentContext();
        cellContext.add(currentContext.getTarget());

        context.push(new StyleContext(new Paragraph(), text.getStyleSheet(), metaData));
      }
    }
  }
View Full Code Here


  }

  protected void processParagraphChilds(final ParagraphRenderBox box)
  {
    context.push(new StyleContext(new Paragraph(), box.getStyleSheet(), metaData));
    clearText();

    super.processParagraphChilds(box);

    final StyleContext currentContext = getCurrentContext();
View Full Code Here

  }

    private void addColumnValue(PdfPTable pdfTable, UIComponent component, int index, Font font) {
      String value = component == null ? "" : ComponentUtils.getStringValueToRender(FacesContext.getCurrentInstance(), component);
           
        pdfTable.addCell(new Paragraph(value, font));
    }
View Full Code Here

                if(value != null)
                  buffer.append(value);
            }
    } 
       
        pdfTable.addCell(new Paragraph(buffer.toString(), font));
    }
View Full Code Here

  static PdfPCell borderlessCell(String s){
      PdfPCell cell = new PdfPCell();
      Font f = new Font(Font.COURIER);
      cell.setBorder(0);
      cell.setHorizontalAlignment(Element.ALIGN_LEFT);
      cell.addElement(new Paragraph(s,f));
      return cell;
  }
View Full Code Here

      return cell;
  }
  public static void addEmptyLine(Paragraph p,int line)
  {
    for( int i=0; i < line; i++ )
        p.add( new Paragraph(" ---------------------------------------") );
   
   
   
  }
View Full Code Here

          cb.endText();   
        }
   public static void addText( String text, Document doc, Font font, int newLines )
        throws DocumentException
        {
          Paragraph paragraph = new Paragraph( text, font );
          addEmptyLine( paragraph, newLines );
          doc.add( paragraph )
        }
View Full Code Here

//          headerTable.addCell(borderlessCell("Phone Number"));
//          headerTable.addCell(borderlessCell(c.getPhone()));
          doc.add(headerTable);
//              Phrase phrase = new Phrase(50);
//              doc.add(phrase);
          Paragraph paragraph = new Paragraph( "");
          main.addEmptyLine(paragraph,10);
         paragraph.add(CONNECT);
          doc.add( paragraph )
         
//          Chunk c = new Chunk( text, font );
//          c.setAction( new PdfAction( new URL( url ) ) );
//          c.setUnderline(0.8f, -0.8f);
//          doc.add( c );
         
         
         
         
          PdfPTable tab=new PdfPTable(6);
        PdfPCell cell = new PdfPCell(new Paragraph("Process Details"));
        cell.setHorizontalAlignment(Element.ALIGN_CENTER);
        cell.setBackgroundColor(new Color(20,105,160));
        cell.setColspan(6);
        tab.addCell(cell);
        tab.addCell("id");
View Full Code Here

                    // not really a question; ingore completely
                } else {
                    value = surveyResponseAnswer.getString("textResponse");
                }
                Chunk chunk = new Chunk(surveyQuestion.getString("question") + ": " + value);
                Paragraph p = new Paragraph(chunk);
                document.add(p);
            }
            ByteBuffer outByteBuffer = ByteBuffer.wrap(baos.toByteArray());
            results.put("outByteBuffer", outByteBuffer);
        } catch (GenericEntityException e) {
View Full Code Here

    public static void newRulePage(Document document,
                                   String packageName,
                                   DrlRuleParser drlData) throws DocumentException {

        document.add( new Paragraph( packageName,
                                     PACKAGE_NAME ) );
        document.add( new Paragraph( "Rule " + drlData.getName(),
                                     CHAPTER_TITLE ) );

        // Extends
        int index = drlData.getName().lastIndexOf( "extends" );
        if ( index > 0 ) {
            document.add( new Paragraph( "Extends:",
                                         BODY_TEXT ) );

            Paragraph ext = new Paragraph( drlData.getName().substring( "extends".length() + index ),
                                           BODY_TEXT );
            ext.setIndentationLeft(INDENTATION_LEFT);
            document.add( ext );
        }

        // if the data came from guvnor, this will be empty
        if(drlData.getDescription() != null && drlData.getDescription().trim().equals("")) {
View Full Code Here

TOP

Related Classes of com.lowagie.text.Paragraph

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.