Example usage for com.lowagie.text.pdf PdfContentByte newlineShowText

List of usage examples for com.lowagie.text.pdf PdfContentByte newlineShowText

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfContentByte newlineShowText.

Prototype

public void newlineShowText(String text) 

Source Link

Document

Moves to the next line and shows text.

Usage

From source file:org.kuali.kfs.fp.document.service.impl.CashReceiptCoverSheetServiceImpl.java

License:Open Source License

/**
 *
 * This method writes out the value provided to the output provided and aligns the value outputted using the xPos float
 * provided./*from   w  ww . j a  v  a 2 s .c  o m*/
 * @param output The content byte used to write out the field to the PDF template.
 * @param xPos The x coordinate of the starting point on the document where the value will be written to.
 * @param fieldValue The value to be written to the PDF cover sheet.
 */
protected void writeCheckField(PdfContentByte output, float xPos, String fieldValue) {
    output.beginText();
    output.setTextMatrix(xPos, getCurrentRenderingYPosition());
    output.newlineShowText(fieldValue);
    output.endText();
}