|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.pdf.elements.HeaderFooter
Represents a header or footer of a page in a Pdf document.
Constructor Summary | |
HeaderFooter()
Initialize a new instance of the IT_HeaderFooter class. |
|
HeaderFooter(Section section)
Initialize a new instance of the IT_HeaderFooter class. |
Method Summary | |
java.lang.Object |
clone()
|
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. |
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. |
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 |
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. |
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 |
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.public HeaderFooter()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.lang.Object#clone()
public GraphInfo getGraphInfo()
public void setGraphInfo(GraphInfo graphInfo)
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)
public Paragraphs getParagraphs()
public void setParagraphs(Paragraphs paragraphs)
public TextInfo getTextInfo()
public void setTextInfo(TextInfo textInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |