Package com.lowagie.text.pdf

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


           
            ColumnText ct = new ColumnText(cb);
            ct.setSimpleColumn(60, 300, 100, 300 + 28 * 15, 15, LwgElement.ALIGN_CENTER);
            ct.addText(new LwgPhrase(15, "UNI\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new LwgPhrase(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, LwgElement.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, LwgElement.ALIGN_RIGHT);
            ct.addText(new LwgPhrase(15, "char\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new LwgPhrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, LwgElement.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, LwgElement.ALIGN_RIGHT);
            ct.addText(new LwgPhrase(15, "char\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new LwgPhrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, LwgElement.ALIGN_LEFT);
            ct.addText(new LwgPhrase(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 LwgPhrase(15, code[i] + "\n", font));
            }
            ct.go();
            ct.setSimpleColumn(160, 300, 500, 300 + 28 * 15, 15, LwgElement.ALIGN_LEFT);
            ct.addText(new LwgPhrase(15, "NAME" + "\n", font));
            for (int i = 0; i < 27; i++) {
                ct.addText(new LwgPhrase(15, name[i] + "\n", font));
            }
            ct.go();
           
View Full Code Here

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

            ct.setSimpleColumn(llx, lly, urx, ury, 24, LwgElement.ALIGN_LEFT);
            ct.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
            ct.setLeading(0, 1);
            ct.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk(ar1, new LwgFont(bf, 16)));
            ct.addText(new Chunk(ar2, new LwgFont(bf, 16, LwgFont.NORMAL, Color.red)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_JUSTIFIED);
            ct.addText(new Chunk(ar3, new LwgFont(bf, 12)));
            ct.go();
View Full Code Here

            ct.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
            ct.setLeading(0, 1);
            ct.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk(ar1, new LwgFont(bf, 16)));
            ct.addText(new Chunk(ar2, new LwgFont(bf, 16, LwgFont.NORMAL, Color.red)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_JUSTIFIED);
            ct.addText(new Chunk(ar3, new LwgFont(bf, 12)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_CENTER);
View Full Code Here

            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk(ar1, new LwgFont(bf, 16)));
            ct.addText(new Chunk(ar2, new LwgFont(bf, 16, LwgFont.NORMAL, Color.red)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_JUSTIFIED);
            ct.addText(new Chunk(ar3, new LwgFont(bf, 12)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk(ar4, new LwgFont(bf, 14)));
            ct.go();
           
View Full Code Here

            ct.go();
            ct.setAlignment(LwgElement.ALIGN_JUSTIFIED);
            ct.addText(new Chunk(ar3, new LwgFont(bf, 12)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk(ar4, new LwgFont(bf, 14)));
            ct.go();
           
            ct.setSpaceCharRatio(PdfWriter.SPACE_CHAR_RATIO_DEFAULT);
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk("\n\n\n", new LwgFont(bf, 16)));
View Full Code Here

            ct.addText(new Chunk(ar4, new LwgFont(bf, 14)));
            ct.go();
           
            ct.setSpaceCharRatio(PdfWriter.SPACE_CHAR_RATIO_DEFAULT);
            ct.setAlignment(LwgElement.ALIGN_CENTER);
            ct.addText(new Chunk("\n\n\n", new LwgFont(bf, 16)));
            ct.addText(new Chunk(he1, new LwgFont(bf, 16)));
            ct.addText(new Chunk(he2, new LwgFont(bf, 16, LwgFont.NORMAL, Color.red)));
            ct.go();
            ct.setAlignment(LwgElement.ALIGN_JUSTIFIED);
            ct.addText(new Chunk(he3, new LwgFont(bf, 12)));
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.