|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.HeaderFooter
public class HeaderFooter
Represents a header or footer of a page in a Pdf document.
Constructor Summary | |
---|---|
HeaderFooter(Section section)
Initialize a new instance of the IT_HeaderFooter class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
BorderInfo |
getBorderInfo()
Get the BordefInfo for this HeaderFooter |
float |
getDistanceFromEdge()
Gets a float value that indicates the Header or Footer's distance from the edge of the page.The unit is point. |
GraphInfo |
getGraphInfo()
Gets a GraphInfo that indicates graph info of the section. |
MarginInfo |
getMarginInfo()
Gets a MarginInfo object that indicates the margin info of the header or footer. |
Paragraphs |
getParagraphs()
Gets a Paragraphs collection that indicates all paragraphs in the header or footer before the page number( if page number is included). |
Section |
getSection()
Get the Section owns this HeaderFooter |
TextInfo |
getTextInfo()
Gets a TextInfo object that indicates the text info of the header or footer. |
boolean |
isFirstPageOnly()
Gets a bool value that indicates whether the header or footer be printed on first page only. |
boolean |
isLastPageOnly()
Gets a bool value that indicates whether the header or footer be printed on last page only. The default value is false. |
boolean |
isSubsequentPagesOnly()
Gets a bool value that indicates whether the header or footer be printed not on first page but on subsequent pages only. |
void |
setBorderInfo(BorderInfo info)
Set the BordefInfo for this HeaderFooter |
void |
setDistanceFromEdge(float distanceFromEdge)
Sets a float value that indicates the Header or Footer's distance from the edge of the page.The unit is point. |
void |
setGraphInfo(GraphInfo graphInfo)
Sets a GraphInfo that indicates graph info of the section. |
void |
setIsFirstPageOnly(boolean firstPageOnly)
Sets a bool value that indicates whether the header or footer be printed on first page only. |
void |
setIsLastPageOnly(boolean lastPageOnly)
Sets a bool value that indicates whether the header or footer be printed on last page only. The default value is false. |
void |
setIsSubsequentPagesOnly(boolean subsequentPagesOnly)
Sets a bool value that indicates whether the header or footer be printed not on first page but on subsequent pages only. |
void |
setMarginInfo(MarginInfo marginInfo)
Sets a MarginInfo object that indicates the margin info of the header or footer. |
void |
setParagraphs(Paragraphs paragraphs)
Sets a Paragraphs collection that indicates all paragraphs in the header or footer. |
void |
setSection(Section section)
|
void |
setTextInfo(TextInfo textInfo)
Sets a TextInfo object that indicates the text info of the header or footer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeaderFooter(Section section)
[SampleCode] Pdf pdf = new Pdf(); Section sec1 = pdf.getSections().add(); Text text1 = new Text(sec1,"This example domestrates how to use pdf header and footer."); sec1.getParagraphs().add(text1); IT_HeaderFooter head = new IT_HeaderFooter(sec1); Text headText = new Text(sec1,"Aspose IT_HeaderFooter"); head.setHerderHeight(30); head.setHeaderText(headText); sec1.setHeader(head);
section
- The Section that owns the header.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Object.clone()
public GraphInfo getGraphInfo()
public void setGraphInfo(GraphInfo graphInfo)
graphInfo
- The GraphInfo to set.public boolean isFirstPageOnly()
public void setIsFirstPageOnly(boolean firstPageOnly)
firstPageOnly
- The IsFirstPageOnly to set.public boolean isLastPageOnly()
public void setIsLastPageOnly(boolean lastPageOnly)
lastPageOnly
- The IsLastPageOnly to set.public boolean isSubsequentPagesOnly()
public void setIsSubsequentPagesOnly(boolean subsequentPagesOnly)
subsequentPagesOnly
- The IsSubsequentPagesOnly to set.public MarginInfo getMarginInfo()
public void setMarginInfo(MarginInfo marginInfo)
marginInfo
- The MarginInfo to set.public Paragraphs getParagraphs()
public void setParagraphs(Paragraphs paragraphs)
paragraphs
- The paragraphs to set.public TextInfo getTextInfo()
public void setTextInfo(TextInfo textInfo)
textInfo
- The TextInfo to set.public BorderInfo getBorderInfo()
public void setBorderInfo(BorderInfo info)
public Section getSection()
public void setSection(Section section)
public float getDistanceFromEdge()
public void setDistanceFromEdge(float distanceFromEdge)
distanceFromEdge
- the distance you want to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |