Modifier and Type | Class and Description |
---|---|
static class |
SignApi.Pdf.ButtonField
Represents a button field.
|
static class |
SignApi.Pdf.CheckBox
Represents a check box field.
|
static class |
SignApi.Pdf.Choice
Represents a choice field.
|
static class |
SignApi.Pdf.ChoiceField
Represents a choice field (field type Ch).
|
static class |
SignApi.Pdf.ComboBox
Represents a combo box.
|
static class |
SignApi.Pdf.Field
PDF documents may have AcroForm fields.
|
static class |
SignApi.Pdf.FieldName
Fields have names.
|
static class |
SignApi.Pdf.FieldPosition
Fields may have a position.
|
static class |
SignApi.Pdf.Font
Various fonts.
|
static class |
SignApi.Pdf.ListBox
Represents a list box.
|
static class |
SignApi.Pdf.PushButton
Represents a pushbutton.
|
static class |
SignApi.Pdf.RadioButton
Represents a radio button field.
|
static class |
SignApi.Pdf.SignatureField
Signature fields may be signed.
|
static class |
SignApi.Pdf.SignatureInfo
A signature field may have various signer related information.
|
static class |
SignApi.Pdf.TextAppearance
Text has an appearance.
|
static class |
SignApi.Pdf.TextField
Text fields may be edited.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addSignatureField(SignApi.Pdf.FieldName fieldName,
SignApi.Pdf.FieldPosition fieldPosition)
Adds a signutare field.
|
static byte[] |
downloadPdf()
Downloads the document.
|
static boolean |
drawImage(SignApi.Pdf.FieldPosition fieldPosition,
BufferedImage image)
Draws an image.
|
static List<SignApi.Pdf.FieldPosition> |
findText(String text)
Searches the document for the given text.
|
static List<SignApi.Pdf.Field> |
getAcroFormFields()
Gets the AcroForm fields.
|
static Optional<Integer> |
getNumberOfPages()
Gets the number of pages.
|
static List<SignApi.Pdf.FieldPosition> |
getPageDimensions()
Gets the page dimensions.
|
static boolean |
loadPdf(byte[] document)
Loads a PDF document.
|
static Optional<BufferedImage> |
renderPage(int page)
Renders a document page.
|
static Optional<BufferedImage> |
renderPage(int page,
int dpi)
Renders a document page.
|
public static boolean addSignatureField(SignApi.Pdf.FieldName fieldName, SignApi.Pdf.FieldPosition fieldPosition)
fieldName
- The name.fieldPosition
- The position.public static List<SignApi.Pdf.Field> getAcroFormFields()
public static Optional<Integer> getNumberOfPages()
public static boolean loadPdf(byte[] document)
document
- The document.public static byte[] downloadPdf()
public static List<SignApi.Pdf.FieldPosition> findText(String text)
text
- The text to find.public static boolean drawImage(SignApi.Pdf.FieldPosition fieldPosition, BufferedImage image)
getPageDimensions()
beforehand.fieldPosition
- The position to draw to.image
- The image to draw.public static Optional<BufferedImage> renderPage(int page)
getNumberOfPages()
beforehand.page
- The page number.public static Optional<BufferedImage> renderPage(int page, int dpi)
getNumberOfPages()
beforehand.page
- The page numberdpi
- The desired resolution in dots per inch.public static List<SignApi.Pdf.FieldPosition> getPageDimensions()
Copyright © 2024. All rights reserved.