Finally I used a TextField.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Setting-the-font-of-form-text-fields-tp2967997p4658528.html
Sent from the iText - General mailing list archive at Nabble.com.
I need setting the font for PdfFormField too.
I try to set it when creating the field.
field = PdfFormField.CreateTextField(writer, true, false, 1000);
field.MKBackgroundColor = BaseColor.GRAY;
field.FieldName = name;
field.Flags = P
On 8/10/2010 11:57, Rafael Wampfler wrote:
> How do I use these two methods on a PdfStamper? I tried when adding the
> text field (step 1) and filling the text field (step 2), but no solution
> was working.
You are mixing two things.
If you create and add the field, then why don't you set its
val
Am 08.10.2010 10:23, schrieb 1T3XT info:
> On 8/10/2010 9:56, Rafael Wampfler wrote:
>> Hi list,
>>
>> I try to do the following:
>>
>> 1. Add a text field to a PDF document with font Courier
>
> With iText, with Acrobat, with another tool?
>
>> 2. Fill out this text field and set it read only (f
On 8/10/2010 9:56, Rafael Wampfler wrote:
> Hi list,
>
> I try to do the following:
>
> 1. Add a text field to a PDF document with font Courier
With iText, with Acrobat, with another tool?
> 2. Fill out this text field and set it read only (for printing)
OK, no problem.
> The problem: the text
Hi list,
I try to do the following:
1. Add a text field to a PDF document with font Courier
2. Fill out this text field and set it read only (for printing)
The problem: the text field has the font Courier while filling out, but
after step 2 it has a default font and not the desired Courier (exce