Can I set the transparency of the image that goes into the setSignatureAffinityStream api?
===== code ==================================
// 2. create PdfFileSignature instance
PdfFileSignature pdfSign = new PdfFileSignature();
// 3. bind the source PDF by reading contents of Stream
PKCS7 pkcs7 = new PKCS7(new ByteArrayInputStream(certByte), certPw);
pkcs7.setShowProperties(false);
pdfSign.bindPdf(new ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray()));
pdfSign.sign(1, true, new Rectangle((int)(width-70), (int)(height-70), 65, 65), pkcs7); // 수직시 사용
//pdfSign.sign(1, true, new Rectangle((int)(height-70), (int)(width-70), 65, 65), pkcs7); // 수평시 사용
try {
pdfSign.setSignatureAppearanceStream(new FileInputStream(new File(imagePath))); //<=== Can I set transparency of the image ?
} catch (Exception e) {
throw new EdocException(this.getClass().getName()+".setCertificate : "+ e.getMessage(), e.toString(), "imagePath(URL) : " + imagePath);
} finally {
try {
out.close();
} catch (IOException e) {
LOG.error(e.getMessage());
}
}
============================================