Hi,
I am using the code below to create a visible signature, but I have a
problem, the text always appears at the bottom of the n2 layer and the next
text lines appears out of limits of the n2 layer. I fix that using
n2.setLeading(-10) but it is bad way to solve the problem. Please, help me.

greetings, Robert.


sap.setVisibleSignature(new Rectangle(100, 500, 400, 400), 1, "Signature1");
sap.setAcro6Layers(true); PdfTemplate layer2 = sap.getLayer(2);
            
n2.getBoundingBox().setBorder(4);
n2.getBoundingBox().setBorderColor(CMYKColor.DARK_GRAY);
n2.setLineDash(10);

n2.setLeading(10);

n2.beginText();

BaseFont bf = BaseFont.createFont("Helvetica", BaseFont.WINANSI, false);
n2.setColorStroke(java.awt.Color.BLUE);
n2.setFontAndSize(bf, 12);

n2.showText("Reason: " + sap.getReason()); //---> this line appears at the
bottom of n2...
n2.newlineText();
n2.showText("Location: " + sap.getLocation());//---> this line does not
appear...

n2.endText();


-- 
View this message in context: 
http://www.nabble.com/Problem-whit-text-in-a-Visible-Signature-tp23368015p23368015.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to