If the field is small the text is small and I don't see how you are going to
increase the text size and still fit insisde the field. You may use the layer2
to write whatever you want, use a ColumnText to take care of the \r\n.
Paulo
> -----Original Message-----
> From: Markus Lobedann [mailto:[email protected]]
> Sent: Thursday, April 30, 2009 11:11 AM
> To: [email protected]
> Subject: [iText-questions] automatically generated
> information in signature-field is too small
>
> Hello,
>
> I am using iText for just a short while now and don't have
> any previous experience with signing and PDF's in general. So
> please bear with me when i confuse some terminology or
> someting else. I would be glad if someone tells me my errors.
>
> I am generating a signature in a preexisting PDF, but the
> information in the signature-field is smaller than i would expect.
> (see attachment test_for_signatures_signed.pdf for an example)
>
> There is enough space in the signature-field that the font
> size could be twice as high!
>
> If I create the signature with
> PdfSignatureAppearance.SignatureRenderNameAndDescription, the
> three text lines will use the whole vertical space (of course
> there would be the name of the signer before the three lines).
> (see attachment test_for_signatures_signed2.pdf for an example)
>
> Is there any way i can change the font-size of the
> signature-field, or let iText fit the text in there on its own?
>
> I already tried to alter the PdfTemplate of the "Layer 2",
> but wasn't able to recreate a signature like this, since
> there is no way to use newline-characters in a PdfTemplate.
> (i found out that altering the font of this PdfTemplate
> results in an empty PdfTemplate, so i tried to fill the
> PdfTemplate on my own and thought about just recreating the
> three lines)
>
>
> You can have a look at the sourcecode here
> http://pastebin.com/m5ed4f6e3
>
> Thanks in advance
> Markus
>
>
> --
> Chaos, Panik und Unordnung - mein Werk hier ist vollendet.
> http://exitus.dynalias.org
>
>
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/