Method Summary |
|
public void | close(PdfDictionary update) This is the last method to be called when using external signatures. |
public static float | fitText(Font font, String text, Rectangle rect, float maxFontSize, int runDirection) Fits the text to some rectangle adjusting the font size as needed. |
public PdfTemplate | getAppearance() Gets the main appearance layer. |
public java.security.cert.Certificate[] | getCertChain() Gets the certificate chain. |
public int | getCertificationLevel() Gets the certified status of this document. |
public String | getContact() Gets the signing contact. |
public java.security.cert.CRL[] | getCrlList() Gets the certificate revocation list. |
public com.lowagie.text.pdf.PdfDictionary | getCryptoDictionary() Gets the user made signature dictionary. |
public java.lang.String | getFieldName() Gets the field name. |
public com.lowagie.text.pdf.PdfName | getFilter() Gets the filter used to sign the document. |
public Image | getImage() Gets the background image for the layer 2. |
public float | getImageScale() Gets the scaling to be applied to the background image. |
public PdfTemplate | getLayer(int layer) Gets a template layer to create a signature appearance. |
public Font | getLayer2Font() Gets the n2 and n4 layer font. |
public String | getLayer2Text() Gets the signature text identifying the signer if set by setLayer2Text(). |
public String | getLayer4Text() Gets the text identifying the signature status if set by setLayer4Text(). |
public String | getLocation() Gets the signing location. |
public String | getNewSigName() Gets a new signature fied name that doesn't clash with any existing name. |
java.io.OutputStream | getOriginalout() |
public int | getPage() Gets the page number of the field. |
public com.lowagie.text.Rectangle | getPageRect() Gets the rectangle that represent the position and dimension of the signature in the page. |
public java.security.PrivateKey | getPrivKey() Gets the private key. |
public String | getProvider() Returns the Cryptographic Service Provider that will sign the document. |
public InputStream | getRangeStream() Gets the document bytes that are hashable when using external signatures. |
public String | getReason() Gets the signing reason. |
public Rectangle | getRect() Gets the rectangle representing the signature dimensions.
the rectangle representing the signature dimensions. |
public int | getRender() Gets the rendering mode for this signature. |
public int | getRunDirection() Gets the run direction. |
public com.lowagie.text.pdf.PdfSigGenericPKCS | getSigStandard() Gets the instance of the standard signature dictionary. |
public java.util.Calendar | getSignDate() Gets the signature date. |
public SignatureEvent | getSignatureEvent() Getter for property signatureEvent. |
public Image | getSignatureGraphic() Gets the Image object to render. |
com.lowagie.text.pdf.ByteBuffer | getSigout() |
public com.lowagie.text.pdf.PdfStamper | getStamper() Gets the PdfStamper associated with this instance. |
public java.io.File | getTempFile() Gets the temporary file. |
public PdfTemplate | getTopLayer() Gets the template that aggregates all appearance layers. |
public boolean | isAcro6Layers() Gets the Acrobat 6.0 layer mode. |
public boolean | isInvisible() Gets the visibility status of the signature. |
public boolean | isNewField() Checks if a new field was created. |
public boolean | isPreClosed() Checks if the document is in the process of closing. |
public void | preClose() This is the first method to be called when using external signatures. |
public void | preClose(HashMap exclusionSizes) This is the first method to be called when using external signatures. |
public void | setAcro6Layers(boolean acro6Layers) Acrobat 6.0 and higher recomends that only layer n2 and n4 be present. |
public void | setCertificationLevel(int certificationLevel) Sets the document type to certified instead of simply signed. |
public void | setContact(String contact) Sets the signing contact. |
public void | setCrypto(PrivateKey privKey, Certificate[] certChain, CRL[] crlList, PdfName filter) Sets the cryptographic parameters.
Parameters: privKey - the private key Parameters: certChain - the certificate chain Parameters: crlList - the certificate revocation list. |
public void | setCryptoDictionary(com.lowagie.text.pdf.PdfDictionary cryptoDictionary) Sets a user made signature dictionary. |
public void | setExternalDigest(byte digest, byte RSAdata, String digestEncryptionAlgorithm) Sets the digest/signature to an external calculated value.
Parameters: digest - the digest. |
public void | setImage(Image image) Sets the background image for the layer 2. |
public void | setImageScale(float imageScale) Sets the scaling to be applied to the background image. |
public void | setLayer2Font(Font layer2Font) Sets the n2 and n4 layer font. |
public void | setLayer2Text(String text) Sets the signature text identifying the signer.
Parameters: text - the signature text identifying the signer. |
public void | setLayer4Text(String text) Sets the text identifying the signature status.
Parameters: text - the text identifying the signature status. |
public void | setLocation(String location) Sets the signing location. |
void | setOriginalout(java.io.OutputStream originalout) |
public void | setProvider(String provider) Sets the Cryptographic Service Provider that will sign the document. |
public void | setReason(String reason) Sets the signing reason. |
public void | setRender(int render) Sets the rendering mode for this signature. |
public void | setRunDirection(int runDirection) Sets the run direction in the n2 and n4 layer. |
public void | setSignDate(java.util.Calendar signDate) Sets the signature date. |
public void | setSignatureEvent(SignatureEvent signatureEvent) Sets the signature event to allow modification of the signature dictionary. |
public void | setSignatureGraphic(Image signatureGraphic) Sets the Image object to render when Render is set to SignatureRenderGraphicAndDescription
Parameters: signatureGraphic - image rendered. |
void | setSigout(com.lowagie.text.pdf.ByteBuffer sigout) |
void | setStamper(com.lowagie.text.pdf.PdfStamper stamper) |
void | setTempFile(java.io.File tempFile) |
public void | setVisibleSignature(Rectangle pageRect, int page, String fieldName) Sets the signature to be visible. |
public void | setVisibleSignature(String fieldName) Sets the signature to be visible. |