Examples of RtfPageNumber


Examples of com.lowagie.text.rtf.field.RtfPageNumber

            footer.setWidth(100);
            footer.addCell(new LwgCell("(c) Mark Hall"));
            Paragraph pageNumber = new Paragraph("Page ");
           
            // The RtfPageNumber is an RTF specific element that adds a page number field
            pageNumber.add(new RtfPageNumber());
            pageNumber.setAlignment(Paragraph.ALIGN_RIGHT);
            footer.addCell(new LwgCell(pageNumber));
           
            // Create the RtfHeaderFooter and set it as the footer to use
            document.setFooter(new RtfHeaderFooter(footer));
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

            // Create the paragraphs that will be used as footers
            Paragraph titleFooter = new Paragraph("Multiple headers / footers example");
            titleFooter.setAlignment(LwgElement.ALIGN_CENTER);
            Paragraph leftFooter = new Paragraph("Page ");
            leftFooter.add(new RtfPageNumber());
            Paragraph rightFooter = new Paragraph("Page ");
            rightFooter.add(new RtfPageNumber());
            rightFooter.setAlignment(LwgElement.ALIGN_RIGHT);
           
            // Create the RtfHeaderGroup for the footer and set the footers
            // at the desired positions
            RtfHeaderFooterGroup footer = new RtfHeaderFooterGroup();
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

            // Create a new Paragraph for the footer
            Paragraph par = new Paragraph("Page ");
            par.setAlignment(LwgElement.ALIGN_RIGHT);

            // Add the RtfPageNumber to the Paragraph
            par.add(new RtfPageNumber());
           
            // Create an RtfHeaderFooter with the Paragraph and set it
            // as a footer for the document
            RtfHeaderFooter footer = new RtfHeaderFooter(par);
            document.setFooter(footer);
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

            // Create a new Paragraph for the footer
            Paragraph par = new Paragraph("Page ");

            // Add the RtfPageNumber to the Paragraph
            par.add(new RtfPageNumber());
           
            // Add the RtfTotalPageNumber to the Paragraph
            par.add(" of ");
            par.add(new RtfTotalPageNumber());
           
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
View Full Code Here

Examples of com.lowagie.text.rtf.field.RtfPageNumber

        par.setAlignment(headerFooter.alignment());
        if (headerFooter.getBefore() != null) {
            par.add(headerFooter.getBefore());
        }
        if (headerFooter.isNumbered()) {
            par.add(new RtfPageNumber(this.document));
        }
        if (headerFooter.getAfter() != null) {
            par.add(headerFooter.getAfter());
        }
        try {
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.