com.spire.pdf.interactive.digitalsignatures
Class PdfSignatureMaker

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.PdfSignatureMaker
Direct Known Subclasses:
PdfMDPSignatureMaker, PdfOrdinarySignatureMaker

public abstract class PdfSignatureMaker
extends java.lang.Object

Pdf signatue maker.


Constructor Summary
PdfSignatureMaker(PdfDocument document, IPdfSignatureFormatter signatureFormatter)
          Initialize a new instance.
PdfSignatureMaker(PdfDocument document, PdfCertificate certificate)
          Initialize a new instance.
 
Method Summary
 PdfSignature getSignature()
          Get the signature.
 void makeSignature(java.lang.String sigFieldName)
          Make signature.
 void makeSignature(java.lang.String sigFieldName, IPdfSignatureAppearance signatureAppearance)
          Make signature.
 void makeSignature(java.lang.String sigFieldName, PdfPageBase page, float x, float y, float width, float height)
          Make signature.
 void makeSignature(java.lang.String sigFieldName, PdfPageBase page, float x, float y, float width, float height, IPdfSignatureAppearance signatureAppearance)
          Make signature.
 void setAcro6Layers(boolean acro6Layers)
          Only for compatibility old version.
 

Constructor Detail

PdfSignatureMaker

public PdfSignatureMaker(PdfDocument document,
                         IPdfSignatureFormatter signatureFormatter)
Initialize a new instance.

Parameters:
document - The pdf document object.
signatureFormatter - The signature formatter.

PdfSignatureMaker

public PdfSignatureMaker(PdfDocument document,
                         PdfCertificate certificate)
Initialize a new instance.

Parameters:
document - The pdf document object.
certificate - The X.509 certificate.
Method Detail

getSignature

public PdfSignature getSignature()
Get the signature.

Returns:
The signature.

setAcro6Layers

public void setAcro6Layers(boolean acro6Layers)
Only for compatibility old version. Whether move away signature validity visualizations in document. Default true.

Parameters:
acro6Layers - false, display signature validity visualizations in document. true, move away signature validity visualizations in document.

makeSignature

public void makeSignature(java.lang.String sigFieldName)
Make signature.

Parameters:
sigFieldName - The signature filed name.

makeSignature

public void makeSignature(java.lang.String sigFieldName,
                          IPdfSignatureAppearance signatureAppearance)
Make signature.

Parameters:
sigFieldName - The signature filed name.
signatureAppearance - Implement a custom signature appearance.

makeSignature

public void makeSignature(java.lang.String sigFieldName,
                          PdfPageBase page,
                          float x,
                          float y,
                          float width,
                          float height)
Make signature.

Parameters:
sigFieldName - The signature filed name.
page - The page.
x - The x position of the annotation on the page.
y - The y position of the annotation on the page.
width - The width of the annotation on the page.
height - The height of the annotation on the page.

makeSignature

public void makeSignature(java.lang.String sigFieldName,
                          PdfPageBase page,
                          float x,
                          float y,
                          float width,
                          float height,
                          IPdfSignatureAppearance signatureAppearance)
Make signature.

Parameters:
sigFieldName - The signature filed name.
page -
x - The x position of the annotation on the page.
y - The y position of the annotation on the page.
width - The width of the annotation on the page.
height - The height of the annotation on the page.
signatureAppearance - Implement a custom signature appearance.