Examples of right()


Examples of com.lowagie.text.LwgDocument.right()

                                  document.right() - colMaxWidth, diamondTop,
                                  document.right() - diamondInset, diamondTop - diamondHeight / 2,
                                  document.right() - colMaxWidth, diamondTop - diamondHeight,
                                  document.right() - colMaxWidth, document.bottom()
                                 };
            right = new float[] { document.right(), document.top(), document.right(), document.bottom() };
            mct.addColumn(left, right);

            // add text
            for (int i=0; i<8; i++) {
                mct.addElement(new Paragraph("GALLIA est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.  Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis Garumna flumen, a Belgis Matrona et Sequana dividit. Horum omnium fortissimi sunt Belgae, propterea quod a cultu atque humanitate provinciae longissime absunt, minimeque ad eos mercatores saepe commeant atque ea quae ad effeminandos animos pertinent important, proximique sunt Germanis, qui trans Rhenum incolunt, quibuscum continenter bellum gerunt.  Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt.\n", FontFactory.getFont(FontFactory.HELVETICA, 12)));
View Full Code Here

Examples of com.lowagie.text.LwgDocument.right()

            // step 2: we create a writer that listens to the document
            PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("columnobjects.pdf"));
           
            float gutter = 20;
            int numColumns = 3;
            float fullWidth = document.right() - document.left();
            float columnWidth = (fullWidth - (numColumns - 1) * gutter) / numColumns;
            float allColumns[] = new float[numColumns]; // left
            for (int k = 0; k < numColumns; ++k) {
                allColumns[k] = document.left() + (columnWidth + gutter) * k;
            }
View Full Code Here

Examples of com.lowagie.text.LwgDocument.right()

            PdfContentByte cb = writer.getDirectContent();
            // headers
            LwgPhrase fullTitle = new LwgPhrase("Full Title", font24B);
            float currentY = document.top();
            ColumnText ct = new ColumnText(cb);
            ct.setSimpleColumn(fullTitle, document.left(), 0, document.right(), document.top(), 24, LwgElement.ALIGN_JUSTIFIED);
            ct.go();
            currentY = ct.getYLine();
            currentY -= 4;
            cb.setLineWidth(1);
            cb.moveTo(document.left(), currentY);
View Full Code Here

Examples of com.lowagie.text.LwgDocument.right()

            ct.go();
            currentY = ct.getYLine();
            currentY -= 4;
            cb.setLineWidth(1);
            cb.moveTo(document.left(), currentY);
            cb.lineTo(document.right(), currentY);
            cb.stroke();
            currentY -= 4;
            ct.setYLine(currentY);
            ct.addText(new Chunk("Author: Name of the author comes here", font10B));
            ct.setLeading(10);
View Full Code Here

Examples of com.lowagie.text.LwgDocument.right()

            MultiColumnText mct = new MultiColumnText();
            mct.setColumnsRightToLeft(true);

            // set up 3 even columns with 10pt space between
            mct.addRegularColumns(document.left(), document.right(), 10f, 3);

            // Write some iText poems
            for (int i = 0; i < 30; i++) {
              mct.addElement(new Paragraph(String.valueOf(i + 1)));
                mct.addElement(newPara(randomWord(noun), LwgElement.ALIGN_CENTER, LwgFont.BOLDITALIC));
View Full Code Here

Examples of com.lowagie.text.LwgDocument.right()


            MultiColumnText mct = new MultiColumnText();

            // set up 3 even columns with 10pt space between
            mct.addRegularColumns(document.left(), document.right(), 10f, 3);

            // Write some iText poems
            for (int i = 0; i < 30; i++) {
              mct.addElement(new Paragraph(String.valueOf(i + 1)));
                mct.addElement(newPara(randomWord(noun), LwgElement.ALIGN_CENTER, LwgFont.BOLDITALIC));
View Full Code Here

Examples of com.lowagie.text.pdf.PdfRectangle.right()

                          case 90:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                pageSize.getTop() - rect.bottom(),
                    rect.left(),
                    pageSize.getTop() - rect.top(),
                    rect.right()));
                            break;
                          case 180:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                pageSize.getRight() - rect.left(),
                    pageSize.getTop() - rect.bottom(),
View Full Code Here

Examples of com.lowagie.text.pdf.PdfRectangle.right()

                            break;
                          case 180:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                pageSize.getRight() - rect.left(),
                    pageSize.getTop() - rect.bottom(),
                    pageSize.getRight() - rect.right(),
                    pageSize.getTop() - rect.top()));
                            break;
                          case 270:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                rect.bottom(),
View Full Code Here

Examples of com.lowagie.text.pdf.PdfRectangle.right()

                          case 270:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                rect.bottom(),
                    pageSize.getRight() - rect.left(),
                    rect.top(),
                    pageSize.getRight() - rect.right()));
                            break;
                      }
                    }
                }
            }
View Full Code Here

Examples of com.lowagie.text.pdf.PdfRectangle.right()

                          case 90:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                pageSize.getTop() - rect.bottom(),
                    rect.left(),
                    pageSize.getTop() - rect.top(),
                    rect.right()));
                            break;
                          case 180:
                            dic.put(PdfName.RECT, new PdfRectangle(
                                pageSize.getRight() - rect.left(),
                    pageSize.getTop() - rect.bottom(),
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.