![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.pdf.elements.PdfElementBase
com.aspose.pdf.elements.Header
Represents a header of a page in a Pdf document.
Constructor Summary | |
Header(Section section)
Initialize a new instance of the Header class. |
Method Summary | |
java.lang.Object |
clone()
Clone an object. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
float |
getHeaderHeight()
Gets a float value that indicates the height of header. |
java.lang.String |
getHeaderName()
Gets the Name of Header. |
Text |
getHeaderText()
Gets a Text that indicates the content in the header. |
void |
setHeaderText(Text content)
Sets a Text that indicates the content in the header. |
void |
setHerderHeight(float height)
Gets a float value that indicates the height of header. |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Header(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); Header head = new Header(sec1); Text headText = new Text(sec1,"Aspose Header"); 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
PdfElementBase
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
java.lang.Object#clone()
public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
public float getHeaderHeight()
public void setHerderHeight(float height)
height
- The height to set.public Text getHeaderText()
public void setHeaderText(Text content)
java.lang.CloneNotSupportedException
public java.lang.String getHeaderName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |