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 StringgetFieldId()Gets signature field idfloatgetHeight()Gets a height of the signature fieldfloatgetOriginX()Gets an upper left X coordinatefloatgetOriginY()Gets a upper left Y coordinateintgetPage()Gets a page where the signature should be placedfloatgetWidth()Gets a width of the signature fieldvoidsetFieldId(String fieldId)Sets a signature field id/name to place a signature intovoidsetHeight(float height)Sets a height of the signature fieldvoidsetOriginX(float originX)Sets a upper left X coordinate of the signature fieldvoidsetOriginY(float originY)Sets a upper left Y coordinate of the signature fieldvoidsetPage(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 documentvoidsetWidth(float width)Sets a width of the signature fieldStringtoString()
-
Constructor Details
-
SignatureFieldParameters
public SignatureFieldParameters()
-
-
Method Details
-
getFieldId
Gets signature field id- Returns:
Stringsignature field id
-
setFieldId
Sets a signature field id/name to place a signature into- Parameters:
fieldId-Stringsignature 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
-