Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.ColumnText.addText()


            ptable.addCell(new Phrase("06/05/1998", font9));
            ptable.setTotalWidth(columnWidth);

            currentY = ptable.writeSelectedRows(0, -1, document.left(), currentY, cb) - 20;
            for (int k = 0; k < headings.length; ++k) {
                ct.addText(new Chunk(headings[k] + "\n", font14B));
                ct.addText(new Chunk(texts[k] + "\n\n", font11));
            }

            int currentColumn = 0;
            ct.setSimpleColumn(allColumns[currentColumn], document.bottom(),
View Full Code Here


            ptable.setTotalWidth(columnWidth);

            currentY = ptable.writeSelectedRows(0, -1, document.left(), currentY, cb) - 20;
            for (int k = 0; k < headings.length; ++k) {
                ct.addText(new Chunk(headings[k] + "\n", font14B));
                ct.addText(new Chunk(texts[k] + "\n\n", font11));
            }

            int currentColumn = 0;
            ct.setSimpleColumn(allColumns[currentColumn], document.bottom(),
                allColumns[currentColumn] + columnWidth, currentY, 15, Element.ALIGN_JUSTIFIED);
View Full Code Here

            BaseFont bf = BaseFont.createFont(BaseFont.COURIER, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
            Font font = new Font(bf, 11, Font.NORMAL);
           
            ColumnText ct = new ColumnText(cb);
            ct.setSimpleColumn(60, 300, 100, 300 + 28 * 15, 15, Element.ALIGN_CENTER);
            ct.addText(new Phrase(15, "UNI\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, uni[i] + "\n", font));
            }
            ct.go();
            cb.rectangle(103, 295, 52, 8 + 28 * 15);
 
View Full Code Here

           
            ColumnText ct = new ColumnText(cb);
            ct.setSimpleColumn(60, 300, 100, 300 + 28 * 15, 15, Element.ALIGN_CENTER);
            ct.addText(new Phrase(15, "UNI\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, uni[i] + "\n", font));
            }
            ct.go();
            cb.rectangle(103, 295, 52, 8 + 28 * 15);
            cb.stroke();
            ct.setSimpleColumn(105, 300, 150, 300 + 28 * 15, 15, Element.ALIGN_RIGHT);
View Full Code Here

            }
            ct.go();
            cb.rectangle(103, 295, 52, 8 + 28 * 15);
            cb.stroke();
            ct.setSimpleColumn(105, 300, 150, 300 + 28 * 15, 15, Element.ALIGN_RIGHT);
            ct.addText(new Phrase(15, "char\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, Element.ALIGN_LEFT);
View Full Code Here

            cb.rectangle(103, 295, 52, 8 + 28 * 15);
            cb.stroke();
            ct.setSimpleColumn(105, 300, 150, 300 + 28 * 15, 15, Element.ALIGN_RIGHT);
            ct.addText(new Phrase(15, "char\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, Element.ALIGN_LEFT);
            ct.addText(new Phrase(15, "NAME" + "\n", font));
            for (int i = 0; i < 27; i++) {
View Full Code Here

            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, Element.ALIGN_LEFT);
            ct.addText(new Phrase(15, "NAME" + "\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, name[i] + "\n", font));
            }
            ct.go();
           
View Full Code Here

            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, Element.ALIGN_LEFT);
            ct.addText(new Phrase(15, "NAME" + "\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new Phrase(15, name[i] + "\n", font));
            }
            ct.go();
           
        }
        catch(DocumentException de) {
View Full Code Here

           
            Image img = Image.getInstance("c:\\lh.jpg");
            cb.addImage(img, img.getScaledWidth(), 0, 0, img.getScaledHeight(), document.left(), currentY - img.getScaledHeight());
            currentY -= img.getScaledHeight() + 10;
            ct.setYLine(currentY);
            ct.addText(new Chunk("Key Data:", font14B));
            ct.go();
            currentY = ct.getYLine();
            currentY -= 4;
           
           
View Full Code Here

            ptable.addCell(new Phrase("06/05/1998", font9));
            ptable.setTotalWidth(columnWidth);

            currentY = ptable.writeSelectedRows(0, -1, document.left(), currentY, cb) - 20;
            for (int k = 0; k < headings.length; ++k) {
                ct.addText(new Chunk(headings[k] + "\n", font14B));
                ct.addText(new Chunk(texts[k] + "\n\n", font11));
            }

           
           
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.