public class TextHeaderFooter extends Object implements Cloneable
TextHeaderFooter uses a fast and logical approach to rendering Headers and Footers for the most
common use cases. A more advanced option available to developers is HtmlHeaderFooter.
See:PdfDocument.addTextHeader(TextHeaderFooter) & PdfDocument.addTextFooter(TextHeaderFooter)
| Constructor and Description |
|---|
TextHeaderFooter()
Creates a text based PDF Header and Footer.
|
TextHeaderFooter(String leftText,
String centerText,
String rightText)
Creates a text based PDF Header and Footer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Clone()
Clones this instance.
|
String |
getCenterText()
Gets center text.
|
String |
getDividerLineColor()
Gets divider line color code.
|
FontTypes |
getFont()
Gets font.
|
double |
getFontSize()
Gets font size.
|
String |
getLeftText()
Gets left text.
|
String |
getRightText()
Gets right text.
|
double |
getSpacing()
Gets spacing.
|
boolean |
isDrawDividerLine()
Is draw divider line boolean.
|
void |
setCenterText(String value)
Sets center text.
|
void |
setDividerLineColor(String colorCode)
Sets divider line color.
|
void |
setDrawDividerLine(boolean value)
Sets draw divider line.
|
void |
setFont(FontTypes value)
Sets font.
|
void |
setFontSize(double value)
Sets font size.
|
void |
setLeftText(String value)
Sets left text.
|
void |
setRightText(String value)
Sets right text.
|
void |
setSpacing(double value)
Sets spacing.
|
public TextHeaderFooter()
setLeftText(String), setCenterText(String) or setRightText(String)public String getCenterText()
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
public void setCenterText(String value)
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
value - the valuepublic boolean isDrawDividerLine()
public void setDrawDividerLine(boolean value)
value - the valuepublic String getDividerLineColor()
public void setDividerLineColor(String colorCode)
colorCode - color codepublic FontTypes getFont()
public void setFont(FontTypes value)
value - the valuepublic double getFontSize()
public void setFontSize(double value)
value - the valuepublic String getLeftText()
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
public void setLeftText(String value)
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
value - the valuepublic String getRightText()
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
public void setRightText(String value)
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
value - the valuepublic double getSpacing()
public void setSpacing(double value)
value - the valuepublic Object Clone() throws CloneNotSupportedException
CloneNotSupportedException - the clone not supported exceptionCopyright © 2022–2023 Iron Software. All rights reserved.