public final class RectData extends Object
Represents a rectangle data structure which specifies the low-left and up-right coordinates.
[Java] Pdf pdf1 = new Pdf(); RectData rect1 = new RectData(); rect1.setLowerLeftX ( 100); rect1.setLowerLeftY ( 100); rect1.setUperRightX ( PageSize.A4Width); rect1.setUperRightY ( PageSize.A4Height); pdf1.getPageSetup().setCropBox ( rect1); Section sec1 = pdf1.getSections().add(); Text text1 = new Text(sec1,"this is text content"); text1.getMargin().setTop ( 30); sec1.getParagraphs().add(text1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf" CropBox="100 100 595 842"> <Section> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>
Constructor and Description |
---|
RectData() |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clones a new
RectData object. |
float |
getLowerLeftX()
Gets or sets a float value that indicates the x-coordinate of the lower-left point.
|
float |
getLowerLeftY()
Gets or sets a float value that indicates the y-coordinate of the lower-left point.
|
float |
getUperRightX()
Gets or sets a float value that indicates the x-coordinate of the upper-right point.
|
float |
getUperRightY()
Gets or sets a float value that indicates the y-coordinate of the upper-right point.
|
void |
setLowerLeftX(float value) |
void |
setLowerLeftY(float value) |
void |
setUperRightX(float value) |
void |
setUperRightY(float value) |
public float getLowerLeftX()
Gets or sets a float value that indicates the x-coordinate of the lower-left point.
public void setLowerLeftX(float value)
public float getLowerLeftY()
Gets or sets a float value that indicates the y-coordinate of the lower-left point.
public void setLowerLeftY(float value)
public float getUperRightX()
Gets or sets a float value that indicates the x-coordinate of the upper-right point.
public void setUperRightX(float value)
public float getUperRightY()
Gets or sets a float value that indicates the y-coordinate of the upper-right point.
public void setUperRightY(float value)
public Object deepClone()
Clones a new RectData
object.
RectData
object.Copyright © 2014 Aspose. All Rights Reserved.