Package com.itextpdf.forms.xfdf
Class FitObject
java.lang.Object
com.itextpdf.forms.xfdf.FitObject
Represent Fit, a child of the Dest element. Content model: none. Attributes: depends of type of Fit (FitH, FitB, FitV etc.). For more details see paragraphs 6.5.13-6.5.19, 6.6.23 in Xfdf specification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Gets a float vertical coordinate positioned at the bottom edge of the window.float
getLeft()
Gets a float horizontal coordinate positioned at the left edge of the window.getPage()
Gets the PdfObject representing the page displayed by current Fit element.float
getRight()
Gets a float horizontal coordinate positioned at the right edge of the window.float
getTop()
Gets a float vertical coordinate positioned at the top edge of the window.float
getZoom()
Gets a float representing the zoom ratio.setBottom
(float bottom) Sets a float vertical coordinate positioned at the bottom edge of the window.setLeft
(float left) Sets a float horizontal coordinate positioned at the left edge of the window.setRight
(float right) Sets a float horizontal coordinate positioned at the right edge of the window.setTop
(float top) Sets a float vertical coordinate positioned at the top edge of the window.setZoom
(float zoom) Sets a float representing the zoom ratio.
-
Constructor Details
-
FitObject
-
-
Method Details
-
getPage
Gets the PdfObject representing the page displayed by current Fit element. Attribute of Fit, FitB, FitBH, FitBV, FitH, FitR, FitV, XYZ elements.- Returns:
-
page
of the current Fit element
-
getTop
public float getTop()Gets a float vertical coordinate positioned at the top edge of the window.- Returns:
- top vertical coordinate
-
setTop
Sets a float vertical coordinate positioned at the top edge of the window.- Parameters:
-
top
- vertical coordinate value - Returns:
-
current
fit object
-
getLeft
public float getLeft()Gets a float horizontal coordinate positioned at the left edge of the window.- Returns:
- left horizontal coordinate
-
setLeft
Sets a float horizontal coordinate positioned at the left edge of the window.- Parameters:
-
left
- horizontal coordinate value - Returns:
-
current
fit object
-
getBottom
public float getBottom()Gets a float vertical coordinate positioned at the bottom edge of the window.- Returns:
- bottom vertical coordinate
-
setBottom
Sets a float vertical coordinate positioned at the bottom edge of the window.- Parameters:
-
bottom
- vertical coordinate value - Returns:
-
current
fit object
-
getRight
public float getRight()Gets a float horizontal coordinate positioned at the right edge of the window.- Returns:
- right horizontal coordinate
-
setRight
Sets a float horizontal coordinate positioned at the right edge of the window.- Parameters:
-
right
- horizontal coordinate - Returns:
-
current
fit object
-
getZoom
public float getZoom()Gets a float representing the zoom ratio. Attribute of XYZ object.- Returns:
- zoom ratio value
-
setZoom
Sets a float representing the zoom ratio. Attribute of XYZ object.- Parameters:
-
zoom
- ratio value - Returns:
-
current
fit object
-