Package com.lowagie.text

Examples of com.lowagie.text.Document.top()


      cb.setLineWidth(1);
      ////填充划线颜色
      cb.setColorStroke(Color.RED);
       

      cb.moveTo(document.left(),  document.top()-150);
       
      cb.lineTo((document.right() - document.left())/2,  document.top() -150);
       
      cb.stroke();
     
View Full Code Here


      cb.setColorStroke(Color.RED);
       

      cb.moveTo(document.left(),  document.top()-150);
       
      cb.lineTo((document.right() - document.left())/2,  document.top() -150);
       
      cb.stroke();
     
   
View Full Code Here

            // step 4:
            // get the stream content
            PdfContentByte cb = writer.getDirectContent();
            // headers
//            Phrase fullTitle = new Phrase("Full Title", font24B);
            float currentY = document.top();
            ColumnText ct = new ColumnText(cb);
//            ct.setSimpleColumn(fullTitle, document.left(), 0, document.right(), document.top(), 24, Element.ALIGN_JUSTIFIED);
//            ct.go();
//           
//           
View Full Code Here

            // step 4:
            // get the stream content
            PdfContentByte cb = writer.getDirectContent();
            // headers
//            Phrase fullTitle = new Phrase("Full Title", font24B);
            float currentY = document.top();
            ColumnText ct = new ColumnText(cb);
//            ct.setSimpleColumn(fullTitle, document.left(), 0, document.right(), document.top(), 24, Element.ALIGN_JUSTIFIED);
//            ct.go();
//           
//           
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.