thanks a lot Paulo!!

Paulo Soares-3 wrote:
> 
> The initial coordinates are at 0,0 - the bottom left corner. Have a
> n2.moveText() after beginText() and before showText().
> 
> Paulo
> 
>> -----Original Message-----
>> From: RobertQ [mailto:[email protected]] 
>> Sent: Monday, May 04, 2009 2:59 PM
>> To: [email protected]
>> Subject: [iText-questions] Problem whit text in a Visible Signature
>> 
>> 
>> 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();
> 
> 
> Aviso Legal:
> 
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem. 
> 
> 
> 
> Disclaimer:
> 
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 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/
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-whit-text-in-a-Visible-Signature-tp23368015p23370224.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