Package eu.europa.esig.dss.pades
Class SignatureFieldParameters
java.lang.Object
eu.europa.esig.dss.pades.SignatureFieldParameters
- All Implemented Interfaces:
Serializable
Parameters which allow to create a new signature field in a PDF document
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionGets signature field idfloat
Gets a height of the signature fieldfloat
Gets an upper left X coordinatefloat
Gets a upper left Y coordinateint
getPage()
Gets a page where the signature should be placedReturns rotation value for a signature field relatively the PDF pagefloat
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
setRotation
(VisualSignatureRotation rotation) Sets a rotation value for the signature field relatively the PDF pagevoid
setWidth
(float width) Sets a width of the signature fieldtoString()
-
Constructor Details
-
SignatureFieldParameters
public SignatureFieldParameters()Default constructor instantiating object with null values
-
-
Method Details
-
getFieldId
-
setFieldId
-
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
-
getRotation
Returns rotation value for a signature field relatively the PDF page- Returns:
VisualSignatureRotation
-
setRotation
Sets a rotation value for the signature field relatively the PDF page- Parameters:
rotation
-VisualSignatureRotation
. The following values can be used: NONE (DEFAULT value. No rotation is applied. The origin of coordinates begins from the top left corner of a page); AUTOMATIC (Rotates a signature field respectively to the page's rotation. Rotates the signature field on the same value as a defined in a PDF page); ROTATE_90 (Rotates a signature field for a 90° clockwise. Coordinates' origin begins from top right page corner); ROTATE_180 (Rotates a signature field for a 180° clockwise. Coordinates' origin begins from the bottom right page corner); ROTATE_270 (Rotates a signature field for a 270° clockwise. Coordinates' origin begins from the bottom left page corner).
-
toString
-