Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.MultiColumnText.addElement()


    mct.addRegularColumns(document.left(), document.right(), 10f, 2);
   
///////加入头部分
    Image jpg = Image.getInstance("c:\\lh.jpg");
    jpg.setAlignment(Image.LEFT);
    mct.addElement(jpg);
   
 
   
    Font theFont = createChineseFont(13,Font.NORMAL,true);
    Paragraph p1 = new Paragraph("第六期", theFont);
View Full Code Here


 
   
    Font theFont = createChineseFont(13,Font.NORMAL,true);
    Paragraph p1 = new Paragraph("第六期", theFont);
    p1.setAlignment(Element.ALIGN_CENTER);
    mct.addElement(p1);
   
    /////////输出空行
    Paragraph pt = new Paragraph("\n", theFont);
    pt.setAlignment(Element.ALIGN_CENTER);
    mct.addElement(pt);
View Full Code Here

    mct.addElement(p1);
   
    /////////输出空行
    Paragraph pt = new Paragraph("\n", theFont);
    pt.setAlignment(Element.ALIGN_CENTER);
    mct.addElement(pt);

    Paragraph p2 = new Paragraph("中油辽河油田公司勘查处                    二零零八年二月二十二日", theFont);
    p2.setAlignment(Element.ALIGN_LEFT);
    mct.addElement(p2);
   
View Full Code Here

    pt.setAlignment(Element.ALIGN_CENTER);
    mct.addElement(pt);

    Paragraph p2 = new Paragraph("中油辽河油田公司勘查处                    二零零八年二月二十二日", theFont);
    p2.setAlignment(Element.ALIGN_LEFT);
    mct.addElement(p2);
   
    //////////再输出空行
    mct.addElement(pt);
   
        PdfContentByte cb = writer.getDirectContent();
View Full Code Here

    Paragraph p2 = new Paragraph("中油辽河油田公司勘查处                    二零零八年二月二十二日", theFont);
    p2.setAlignment(Element.ALIGN_LEFT);
    mct.addElement(p2);
   
    //////////再输出空行
    mct.addElement(pt);
   
        PdfContentByte cb = writer.getDirectContent();
       
        ///////////划线
      cb.setLineWidth(1);
View Full Code Here

     
   

    // Write some iText poems
    for (int i = 0; i < 30; i++) {
      mct.addElement(new Paragraph(String.valueOf(i + 1)));
      mct.addElement(newPara(randomWord(noun), Element.ALIGN_CENTER,
          Font.BOLDITALIC));
      for (int j = 0; j < 4; j++) {
        mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT,
            Font.NORMAL));
View Full Code Here

   

    // Write some iText poems
    for (int i = 0; i < 30; i++) {
      mct.addElement(new Paragraph(String.valueOf(i + 1)));
      mct.addElement(newPara(randomWord(noun), Element.ALIGN_CENTER,
          Font.BOLDITALIC));
      for (int j = 0; j < 4; j++) {
        mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT,
            Font.NORMAL));
      }
View Full Code Here

    for (int i = 0; i < 30; i++) {
      mct.addElement(new Paragraph(String.valueOf(i + 1)));
      mct.addElement(newPara(randomWord(noun), Element.ALIGN_CENTER,
          Font.BOLDITALIC));
      for (int j = 0; j < 4; j++) {
        mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT,
            Font.NORMAL));
      }
      mct.addElement(newPara(randomWord(adverb), Element.ALIGN_LEFT,
          Font.NORMAL));
      mct.addElement(newPara("\n\n", Element.ALIGN_LEFT, Font.NORMAL));
View Full Code Here

          Font.BOLDITALIC));
      for (int j = 0; j < 4; j++) {
        mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT,
            Font.NORMAL));
      }
      mct.addElement(newPara(randomWord(adverb), Element.ALIGN_LEFT,
          Font.NORMAL));
      mct.addElement(newPara("\n\n", Element.ALIGN_LEFT, Font.NORMAL));
    }
 
View Full Code Here

        mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT,
            Font.NORMAL));
      }
      mct.addElement(newPara(randomWord(adverb), Element.ALIGN_LEFT,
          Font.NORMAL));
      mct.addElement(newPara("\n\n", Element.ALIGN_LEFT, Font.NORMAL));
    }
 

   
    ////////////盖章
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.