com.lowagie.text.pdf

Class PdfAppearance

public class PdfAppearance extends PdfTemplate

Implements the appearance stream to be used with form fields..
Field Summary
static HashMapstdFieldFontNames
Constructor Summary
PdfAppearance()
Creates a PdfAppearance.
PdfAppearance(PdfIndirectReference iref)
PdfAppearance(PdfWriter wr)
Creates new PdfTemplate
Method Summary
static PdfAppearancecreateAppearance(PdfWriter writer, float width, float height)
Creates a new appearance to be used with form fields.
static PdfAppearancecreateAppearance(PdfWriter writer, float width, float height, PdfName forcedName)
PdfContentBytegetDuplicate()
voidsetFontAndSize(BaseFont bf, float size)
Set the font and the size for the subsequent text writing.

Field Detail

stdFieldFontNames

public static final HashMap stdFieldFontNames

Constructor Detail

PdfAppearance

PdfAppearance()
Creates a PdfAppearance.

PdfAppearance

PdfAppearance(PdfIndirectReference iref)

PdfAppearance

PdfAppearance(PdfWriter wr)
Creates new PdfTemplate

Parameters: wr the PdfWriter

Method Detail

createAppearance

public static PdfAppearance createAppearance(PdfWriter writer, float width, float height)
Creates a new appearance to be used with form fields.

Parameters: writer the PdfWriter to use width the bounding box width height the bounding box height

Returns: the appearance created

createAppearance

static PdfAppearance createAppearance(PdfWriter writer, float width, float height, PdfName forcedName)

getDuplicate

public PdfContentByte getDuplicate()

setFontAndSize

public void setFontAndSize(BaseFont bf, float size)
Set the font and the size for the subsequent text writing.

Parameters: bf the font size the font size in points