public class PDVisibleSignDesigner extends Object
Constructor and Description |
---|
PDVisibleSignDesigner(InputStream originalDocumenStream,
InputStream imageStream,
int page) |
PDVisibleSignDesigner(PDDocument doc,
InputStream imageStream,
int page) |
PDVisibleSignDesigner(String documentPath,
InputStream imageStream,
int page) |
public PDVisibleSignDesigner(InputStream originalDocumenStream, InputStream imageStream, int page) throws IOException
originalDocumenStream
- imageStream
- page
- the 1-based page number for which the page size should be calculated.IOException
public PDVisibleSignDesigner(String documentPath, InputStream imageStream, int page) throws IOException
documentPath
- - path of your pdf documentimageStream
- - stream of imagepage
- the 1-based page number for which the page size should be calculated.IOException
public PDVisibleSignDesigner(PDDocument doc, InputStream imageStream, int page) throws IOException
doc
- - Already created PDDocument of your PDF documentimageStream
- page
- the 1-based page number for which the page size should be calculated.IOException
- - If we can't read, flush, or can't close streampublic PDVisibleSignDesigner signatureImage(String path) throws IOException
path
- of image locationIOException
public PDVisibleSignDesigner zoom(float percent)
percent
- the percentage for zooming the image.public PDVisibleSignDesigner coordinates(float x, float y)
x
- the x coordinatey
- the y coordinatepublic float getxAxis()
public PDVisibleSignDesigner xAxis(float xAxis)
xAxis
- - x coordinatepublic float getyAxis()
public PDVisibleSignDesigner yAxis(float yAxis)
yAxis
- public float getWidth()
public PDVisibleSignDesigner width(float signatureImgWidth)
signatureImgWidth
- the signature image widthpublic float getHeight()
public PDVisibleSignDesigner height(float signatureImgHeight)
signatureImgHeight
- the signature image Heightprotected float getTemplateHeight()
public String getSignatureFieldName()
public PDVisibleSignDesigner signatureFieldName(String signatureFieldName)
signatureFieldName
- public InputStream getImageStream()
public byte[] getAffineTransformParams()
public PDVisibleSignDesigner affineTransformParams(byte[] affineTransformParams)
affineTransformParams
- public byte[] getFormaterRectangleParams()
public PDVisibleSignDesigner formaterRectangleParams(byte[] formaterRectangleParams)
formaterRectangleParams
- public float getPageWidth()
public PDVisibleSignDesigner pageWidth(float pageWidth)
pageWidth
- the pageWidthpublic float getPageHeight()
public float getImageSizeInPercents()
public void imageSizeInPercents(float imageSizeInPercents)
imageSizeInPercents
- public String getSignatureText()
public PDVisibleSignDesigner signatureText(String signatureText)
signatureText
- - adds the text on visible signatureCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.