Hello all,
I hava a couple of question about
PdfFormField.
Any work around or suggestions would be
helpful.
I am trying to create a password-type text
form field with border and fill.
My code is like this;
...............
field.setMKBorderColor( new
GrayColor(0.5f) );
field.setMKBackgroundColor( new GrayColor(0.8f) ); ...............
But generated PDF file does not show
border line nor background color on screen,
but border and fill property of the field
are checked.
PDF source is like this;
............... 4 0 obj
<</Matrix [1 0 0 1 0 0] /Resources <</Font <</F1 2 0 R>> /ProcSet [/PDF /Text]>> /Subtype /Form /Length 89 /FormType 1 /BBox [0 0 171 19] /Type /XObject >> stream /Tx BMC q 2 2 167 15 re W n BT /F1 12 Tf 0 g 1 0 0 1 4 5 Tm (Some start text)Tj ET
Q EMC
endstream endobj ...............
I added by hand something
like
"0.8 g 0 0 171 19 re f 0.5 G 1 w
0.5 0.5 170 18 re s"
to stream for border and fill,
and got the right PDF.
So my question is, is there any iText
method that gives me the same result?
One other question, I tried the following code to create a password
field;
PdfFormField field =
PdfFormField.createTextField(writer, false, true, 0);
But I cannot get the field with password
property on.
Is there anything I should do other than
this code to make password field?
Thank you in advance.
KuMi
|
- RE: [iText-questions] About form field KuMi
- RE: [iText-questions] About form field Paulo Soares
- Re: [iText-questions] About form field Kumata Mitsugu
- Re: [iText-questions] About form field phillip
- Re: [iText-questions] About form field Kumata Mitsugu
- RE: [iText-questions] About form field Paulo Soares
- RE: [iText-questions] About form field Paulo Soares