Package com.itextpdf.text.pdf
Class PdfSignatureAppearance
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfSignatureAppearance
-
public class PdfSignatureAppearance extends java.lang.ObjectClass that takes care of the cryptographic options and appearances that form a signature.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPdfSignatureAppearance.RenderingModeSignature rendering modesstatic interfacePdfSignatureAppearance.SignatureEventAn interface to retrieve the signature dictionary for modification.
-
Field Summary
Fields Modifier and Type Field Description static intCERTIFIED_FORM_FILLINGAuthor signature, form filling allowedstatic intCERTIFIED_FORM_FILLING_AND_ANNOTATIONSAuthor signature, form filling and annotations allowedstatic intCERTIFIED_NO_CHANGES_ALLOWEDAuthor signature, no changes allowedstatic intNOT_CERTIFIEDApproval signaturestatic java.lang.StringquestionMarkAn appearance that can be used for layer 1 (if acro6Layers is false).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDeveloperExtension(PdfDeveloperExtension de)Adds the appropriate developer extension.voidclose(PdfDictionary update)This is the last method to be called when using external signatures.PdfTemplategetAppearance()Gets the main appearance layer.java.security.cert.CertificategetCertificate()intgetCertificationLevel()Gets the certified status of this document.java.lang.StringgetContact()Gets the signing contact.PdfDictionarygetCryptoDictionary()Gets the user made signature dictionary.PdfSigLockDictionarygetFieldLockDict()Getter for the field lock dictionary.java.lang.StringgetFieldName()Gets the field name.ImagegetImage()Gets the background image for the layer 2.floatgetImageScale()Gets the scaling to be applied to the background image.PdfTemplategetLayer(int layer)Gets a template layer to create a signature appearance.FontgetLayer2Font()Gets the n2 and n4 layer font.java.lang.StringgetLayer2Text()Gets the signature text identifying the signer if set by setLayer2Text().java.lang.StringgetLayer4Text()Gets the text identifying the signature status if set by setLayer4Text().java.lang.StringgetLocation()Gets the signing location.java.lang.StringgetNewSigName()Gets a new signature field name that doesn't clash with any existing name.intgetPage()Gets the page number of the field.RectanglegetPageRect()Gets the rectangle that represent the position and dimension of the signature in the page.java.io.InputStreamgetRangeStream()Gets the document bytes that are hashable when using external signatures.java.lang.StringgetReason()Gets the signing reason.RectanglegetRect()Gets the rectangle representing the signature dimensions.PdfSignatureAppearance.RenderingModegetRenderingMode()Gets the rendering mode for this signature.intgetRunDirection()Gets the run direction.java.lang.StringgetSignatureCreator()Gets the signature creator.PdfSignatureAppearance.SignatureEventgetSignatureEvent()Getter for property signatureEvent.ImagegetSignatureGraphic()Gets the Image object to render.java.util.CalendargetSignDate()Gets the signature date.PdfStampergetStamper()Gets thePdfStamperassociated with this instance.java.io.FilegetTempFile()Gets the temporary file.PdfTemplategetTopLayer()Gets the template that aggregates all appearance layers.booleanisAcro6Layers()Gets the Acrobat 6.0 layer mode.booleanisInvisible()Gets the visibility status of the signature.booleanisPreClosed()Checks if the document is in the process of closing.voidpreClose(java.util.HashMap<PdfName,java.lang.Integer> exclusionSizes)This is the first method to be called when using external signatures.voidsetAcro6Layers(boolean acro6Layers)Deprecated.Adobe no longer supports Adobe Acrobat / Reader versions older than 9voidsetCertificate(java.security.cert.Certificate signCertificate)Sets the certificate used to provide the text in the appearance.voidsetCertificationLevel(int certificationLevel)Sets the document type to certified instead of simply signed.voidsetContact(java.lang.String contact)Sets the signing contact.voidsetCryptoDictionary(PdfDictionary cryptoDictionary)Sets a user made signature dictionary.voidsetFieldLockDict(PdfSigLockDictionary fieldLock)Setter for the field lock dictionary.voidsetImage(Image image)Sets the background image for the layer 2.voidsetImageScale(float imageScale)Sets the scaling to be applied to the background image.voidsetLayer2Font(Font layer2Font)Sets the n2 and n4 layer font.voidsetLayer2Text(java.lang.String text)Sets the signature text identifying the signer.voidsetLayer4Text(java.lang.String text)Sets the text identifying the signature status.voidsetLocation(java.lang.String location)Sets the signing location.voidsetLocationCaption(java.lang.String locationCaption)Sets the caption for the signing location.voidsetReason(java.lang.String reason)Sets the signing reason.voidsetReasonCaption(java.lang.String reasonCaption)Sets the caption for signing reason.voidsetRenderingMode(PdfSignatureAppearance.RenderingMode renderingMode)Sets the rendering mode for this signature.voidsetReuseAppearance(boolean reuseAppearance)Indicates that the existing appearances needs to be reused as layer 0.voidsetRunDirection(int runDirection)Sets the run direction in the n2 and n4 layer.voidsetSignatureCreator(java.lang.String signatureCreator)Sets the name of the application used to create the signature.voidsetSignatureEvent(PdfSignatureAppearance.SignatureEvent signatureEvent)Sets the signature event to allow modification of the signature dictionary.voidsetSignatureGraphic(Image signatureGraphic)Sets the Image object to render when Render is set toRenderingMode.GRAPHICorRenderingMode.GRAPHIC_AND_DESCRIPTION.voidsetSignDate(java.util.Calendar signDate)Sets the signature date.voidsetVisibleSignature(Rectangle pageRect, int page, java.lang.String fieldName)Sets the signature to be visible.voidsetVisibleSignature(java.lang.String fieldName)Sets the signature to be visible.
-