![]() |
||
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.Section
Represents a section in a Pdf document.
Constructor Summary | |
Section(ElementFactory elementFactory)
Initializes a new instance of the Section class. |
|
Section(Pdf pdf)
Initializes a new instance of the Section class. |
Method Summary | |
java.lang.Object |
clone()
Clone an object. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
int |
getFirstLineIndent()
Gets an int value that indicates the blank space at the beginning of the section. |
Footer |
getFooter()
Gets a Footer object that indicates the footer of the section. |
Header |
getHeader()
Gets a Header object that indicates the header of the section. |
PageSetup |
getPageSetup()
Gets a PageSetup that indicates page info of the section. |
Paragraphs |
getParagraphs()
Gets a Paragraph collection that indicates all paragraphs in the section. |
TextInfo |
getTextInfo()
|
boolean |
isSpaced()
Gets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown. |
void |
setFirstLineIndent(int indent)
Sets an int value that indicates the blank space at the beginning of the section. |
void |
setFooter(Footer footer)
Sets a Footer object that indicates the footer of the section. |
void |
setHeader(Header header)
Sets a Header object that indicates the header of the section. |
void |
setIsSpaced(boolean isSpaced)
Sets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown. |
void |
setPageSetup(PageSetup pageSetup)
Sets a PageSetup that indicates page info of the section. |
void |
setParagraphs(Paragraphs paragraphs)
Sets a Paragraph collection that indicates all paragraphs in the section. |
void |
setTextInfo(TextInfo textInfo)
|
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 Section(ElementFactory elementFactory) throws AsposeBaseException
elementFactory
- xsl-fo DOM element factory.
AsposeBaseException
public Section(Pdf pdf) throws java.lang.Exception
pdf
- the pdf document that owns the Section.
java.lang.Exception
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PdfElementBase
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
java.lang.Object#clone()
public void setPageSetup(PageSetup pageSetup)
public PageSetup getPageSetup()
public void setTextInfo(TextInfo textInfo)
public TextInfo getTextInfo()
public Paragraphs getParagraphs()
public void setParagraphs(Paragraphs paragraphs)
paragraphs
- The paragraphs to set.public int getFirstLineIndent()
public void setFirstLineIndent(int indent)
public boolean isSpaced()
[SampleCode] Gets or sets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown. For the following XML:If IsSpaced is false, the result will be: The first line,The second line. If IsSpaced is true, the result will be: The first line, The second line. The first line, The second line.
public void setIsSpaced(boolean isSpaced)
public Header getHeader()
public void setHeader(Header header)
public Footer getFooter()
public void setFooter(Footer footer)
public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |