![]() |
||
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.PageSetup
Encapsulates info for page setup.
Constructor Summary | |
PageSetup(ElementFactory elementFactory)
Initializes a new instance of the PageSetup class. |
Method Summary | |
java.lang.Object |
clone()
Gets a clone of PageSetup. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
MarginInfo |
getMargin()
Gets a MarginInfo object that indicates the page margin info |
float |
getPageHeight()
Gets the height of page. |
java.lang.String |
getPageSetupName()
Gets the name of the PageSetup object. |
float |
getPageWidth()
Gets the width of page. |
void |
setMargin(MarginInfo margin)
sets a MarginInfo object that indicates the page margin info |
void |
setPageHeight(float pageHeight)
Sets the height of page, unit is pt. |
void |
setPageWidth(float pageWidth)
Sets the width of page, unit is pt. |
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 PageSetup(ElementFactory elementFactory) throws AsposeBaseException
elementFactory
- xsl-fo DOM element factory.
AsposeBaseException
- throws when elementFactory gets an error.Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
- throw when Cloneable interface not implemented
AsposeBaseException
java.lang.Object#clone(),Pdf.getPageSetup()
public java.lang.String getPageSetupName()
public void setPageHeight(float pageHeight)
pageHeight
- float, page height in ptpublic float getPageHeight()
public void setPageWidth(float pageWidth)
pageWidth
- float, page width in ptpublic float getPageWidth()
public void setMargin(MarginInfo margin)
margin
- MarginInfopublic MarginInfo getMargin()
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 |