Package eu.europa.esig.dss.pades
Class SignatureFieldParameters
java.lang.Object
eu.europa.esig.dss.pades.SignatureFieldParameters
- All Implemented Interfaces:
Serializable
public class SignatureFieldParameters extends Object implements Serializable
Parameters which allow to create a new signature field in a PDF document
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SignatureFieldParameters()
-
Method Summary
Modifier and Type Method Description String
getFieldId()
Gets signature field idfloat
getHeight()
Gets a height of the signature fieldfloat
getOriginX()
Gets an upper left X coordinatefloat
getOriginY()
Gets a upper left Y coordinateint
getPage()
Gets a page where the signature should be placedfloat
getWidth()
Gets a width of the signature fieldvoid
setFieldId(String fieldId)
Sets a signature field id/name to place a signature intovoid
setHeight(float height)
Sets a height of the signature fieldvoid
setOriginX(float originX)
Sets a upper left X coordinate of the signature fieldvoid
setOriginY(float originY)
Sets a upper left Y coordinate of the signature fieldvoid
setPage(int page)
Sets a page number where the signature field should be placed NOTE: the counting starts from 1 (one) for the first page of the documentvoid
setWidth(float width)
Sets a width of the signature fieldString
toString()
-
Constructor Details
-
SignatureFieldParameters
public SignatureFieldParameters()
-
-
Method Details
-
getFieldId
Gets signature field id- Returns:
String
signature field id
-
setFieldId
Sets a signature field id/name to place a signature into- Parameters:
fieldId
-String
signature field id/name
-
getPage
public int getPage()Gets a page where the signature should be placed- Returns:
- page number
-
setPage
public void setPage(int page)Sets a page number where the signature field should be placed NOTE: the counting starts from 1 (one) for the first page of the document- Parameters:
page
- where the signature field should be placed
-
getOriginX
public float getOriginX()Gets an upper left X coordinate- Returns:
- upper left X coordinate
-
setOriginX
public void setOriginX(float originX)Sets a upper left X coordinate of the signature field- Parameters:
originX
- upper left X coordinate
-
getOriginY
public float getOriginY()Gets a upper left Y coordinate- Returns:
- upper left Y coordinate
-
setOriginY
public void setOriginY(float originY)Sets a upper left Y coordinate of the signature field- Parameters:
originY
- upper left Y coordinate
-
getWidth
public float getWidth()Gets a width of the signature field- Returns:
- width
-
setWidth
public void setWidth(float width)Sets a width of the signature field- Parameters:
width
- of the signature field
-
getHeight
public float getHeight()Gets a height of the signature field- Returns:
- height
-
setHeight
public void setHeight(float height)Sets a height of the signature field- Parameters:
height
- of the signature field
-
toString
-