signature.setSignDate(Calendar.getInstance());
// register signature dictionary and sign interface
if (signatureProperties != null && signatureProperties.isVisualSignEnabled()) {
options = new SignatureOptions();
options.setVisualSignature(signatureProperties);
// options.setPage(signatureProperties.getPage());
// options.setPreferedSignatureSize(signatureProperties.getPreferredSize());
doc.addSignature(signature, this, options);
} else {