| Modifier and Type | Field and Description |
|---|---|
| private AffineTransform | |
| private int[] | |
| private BufferedImage | |
| private Float | |
| private float | |
| private Float | |
| private float | |
| private float | |
| private int | |
| private String | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | PDVisibleSignDesigner(String
Path of the PDF file filename, InputStream image as a stream imageStream, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(RandomAccessRead
Original PDF document as RandomAccessRead documentSource, InputStream Image as a stream imageStream, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(PDDocument
Already created PDDocument of your PDF document. document, InputStream Image as a stream. imageStream, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(String
Path of the PDF file filename, BufferedImage the image to be used for the visible signature image, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(RandomAccessRead
Original PDF document as RandomAccessRead documentSource, BufferedImage the image to be used for the visible signature image, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(PDDocument
Already created PDDocument of your PDF document. document, BufferedImage the image to be used for the visible signature image, int The 1-based page number for which the page size should be calculated. page)Constructor. |
| public | PDVisibleSignDesigner(InputStream
image as a stream imageStream)Constructor usable for signing existing signature fields. |
| Modifier and Type | Method and Description |
|---|---|
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration ObjectAdjust signature for page rotation. |
| private void | calculatePageSize(PDDocument document, int
The 1-based page number for which the page size should be calculated. page)Each page of document can be different sizes. |
| private void | |
| private void | |
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration Object- x coordinate x, float - y coordinate y)
|
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration Objectrectangle parameter of the formatter formatterRectangleParameters)Sets formatter PDRectangle |
| public int[] | |
| public float | |
| public BufferedImage | |
| public float | |
| public float | |
| public float | |
| public String | |
| public String | |
| protected float | |
| public AffineTransform | |
| public float | |
| public float | |
| public float | |
| public PDVisibleSignDesigner | |
| public void | |
| private PDVisibleSignDesigner | |
| public PDVisibleSignDesigner | |
| private void | readImageStream(InputStream
stream of your visible signature image stream)Read the image stream of the signature and set height and width. |
| private void | |
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration Objectthe name of the signature field signatureFieldName)
|
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration ObjectPath of the image file. path)Set the image for the signature. |
| public PDVisibleSignDesigner | Returns: the signature design- adds the text on visible signature signatureText)
|
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration Objectthe affine transformation affineTransform)
|
| public PDVisibleSignDesigner | |
| public PDVisibleSignDesigner | |
| public PDVisibleSignDesigner | |
| public PDVisibleSignDesigner | Returns: Visible Signature Configuration Objectincrease (positive value) or decrease (negative value) image with x percent. percent)Zoom signature image with some percent. |
| affineTransform | back to summary |
|---|---|
| private AffineTransform affineTransform | |
| formatterRectangleParameters | back to summary |
|---|---|
| private int[] formatterRectangleParameters | |
| image | back to summary |
|---|---|
| private BufferedImage image | |
| imageHeight | back to summary |
|---|---|
| private Float imageHeight | |
| imageSizeInPercents | back to summary |
|---|---|
| private float imageSizeInPercents | |
| imageWidth | back to summary |
|---|---|
| private Float imageWidth | |
| pageHeight | back to summary |
|---|---|
| private float pageHeight | |
| pageWidth | back to summary |
|---|---|
| private float pageWidth | |
| rotation | back to summary |
|---|---|
| private int rotation | |
| signatureFieldName | back to summary |
|---|---|
| private String signatureFieldName | |
| xAxis | back to summary |
|---|---|
| private float xAxis | |
| yAxis | back to summary |
|---|---|
| private float yAxis | |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(String filename, InputStream imageStream, int page) throws IOException Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(RandomAccessRead documentSource, InputStream imageStream, int page) throws IOException Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(PDDocument document, InputStream imageStream, int page) throws IOException Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(String filename, BufferedImage image, int page) throws IOException Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(RandomAccessRead documentSource, BufferedImage image, int page) throws IOException Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(PDDocument document, BufferedImage image, int page) Constructor.
| |
| PDVisibleSignDesigner | back to summary |
|---|---|
| public PDVisibleSignDesigner(InputStream imageStream) throws IOException Constructor usable for signing existing signature fields.
| |
| adjustForRotation | back to summary |
|---|---|
| public PDVisibleSignDesigner adjustForRotation() Adjust signature for page rotation. This is optional, call this after all x and y coordinates have been set if you want the signature to be positioned regardless of page orientation.
| |
| calculatePageSize | back to summary |
|---|---|
| private void calculatePageSize(PDDocument document, int page) Each page of document can be different sizes. This method calculates the page size based on the page media box.
| |
| calculatePageSizeFromFile | back to summary |
|---|---|
| private void calculatePageSizeFromFile(String filename, int page) throws IOException | |
| calculatePageSizeFromRandomAccessRead | back to summary |
|---|---|
| private void calculatePageSizeFromRandomAccessRead(RandomAccessRead documentSource, int page) throws IOException | |
| coordinates | back to summary |
|---|---|
public PDVisibleSignDesigner coordinates(float x, float y)
| |
| formatterRectangleParameters | back to summary |
|---|---|
| public PDVisibleSignDesigner formatterRectangleParameters(int[] formatterRectangleParameters) Sets formatter PDRectangle
| |
| getFormatterRectangleParameters | back to summary |
|---|---|
public int[] getFormatterRectangleParameters()
| |
| getHeight | back to summary |
|---|---|
public float getHeight()
| |
| getImage | back to summary |
|---|---|
public BufferedImage getImage()
| |
| getImageSizeInPercents | back to summary |
|---|---|
| public float getImageSizeInPercents() get image size in percents
| |
| getPageHeight | back to summary |
|---|---|
public float getPageHeight()
| |
| getPageWidth | back to summary |
|---|---|
public float getPageWidth()
| |
| getSignatureFieldName | back to summary |
|---|---|
public String getSignatureFieldName()
| |
| getSignatureText | back to summary |
|---|---|
| public String getSignatureText() returns visible signature text
| |
| getTemplateHeight | back to summary |
|---|---|
protected float getTemplateHeight()
| |
| getTransform | back to summary |
|---|---|
public AffineTransform getTransform()
| |
| getWidth | back to summary |
|---|---|
public float getWidth()
| |
| getxAxis | back to summary |
|---|---|
public float getxAxis()
| |
| getyAxis | back to summary |
|---|---|
public float getyAxis()
| |
| height | back to summary |
|---|---|
public PDVisibleSignDesigner height(float height)
| |
| imageSizeInPercents | back to summary |
|---|---|
public void imageSizeInPercents(float imageSizeInPercents)
| |
| pageHeight | back to summary |
|---|---|
private PDVisibleSignDesigner pageHeight(float templateHeight)
| |
| pageWidth | back to summary |
|---|---|
public PDVisibleSignDesigner pageWidth(float pageWidth)
| |
| readImageStream | back to summary |
|---|---|
| private void readImageStream(InputStream stream) throws IOException Read the image stream of the signature and set height and width.
| |
| setImage | back to summary |
|---|---|
| private void setImage(BufferedImage image) Set image and its height and width. | |
| signatureFieldName | back to summary |
|---|---|
public PDVisibleSignDesigner signatureFieldName(String signatureFieldName)
| |
| signatureImage | back to summary |
|---|---|
| public PDVisibleSignDesigner signatureImage(String path) throws IOException Set the image for the signature.
| |
| signatureText | back to summary |
|---|---|
public PDVisibleSignDesigner signatureText(String signatureText)
| |
| transform | back to summary |
|---|---|
public PDVisibleSignDesigner transform(AffineTransform affineTransform)
| |
| width | back to summary |
|---|---|
public PDVisibleSignDesigner width(float width)
| |
| xAxis | back to summary |
|---|---|
public PDVisibleSignDesigner xAxis(float xAxis)
| |
| yAxis | back to summary |
|---|---|
public PDVisibleSignDesigner yAxis(float yAxis)
| |
| zoom | back to summary |
|---|---|
| public PDVisibleSignDesigner zoom(float percent) Zoom signature image with some percent.
| |