> About password field;
> I added the folllowing code to my program;
>   "field.setFlags(PdfFormField.FF_PASSWORD);"

        Read PDF Reference p.448. Bit 14 is Password field flag.
> 
> But this code produces "/Ff 8192".
> I think right flag shoudl be "/Ff 12591104".

        12591104 = 110000000010000000000000. Bit 14 is certainly set. But
Bit 23, 24 are in PDF1.4. Bit 23 should certainly be set to avoid spell
checking. Bit 24 will only apply if you set the field as FF_MULTILINE.

        I think Paulo should update PdfFormField.java to include something
like:

        public static final int FF_FILESELECT = 1048576;
        public static final int FF_DONOTSPELLCHECK = 4194304;
        public static final int FF_DONOTSCROLL = 8388608;

        So, if you wait for the new release, you should do:

        field.setFlags(PdfFormField.FF_PASSWORD | 4194304);

        or if you do not, you should do:

        field.setFlags(PdfFormField.FF_PASSWORD |
PdfFormField.FF_DONOTSPELLCHECK);

        Remember you should set the PDF version to 1.4.

        All the best.
        
-- 
With regards

Phillip Pan
-----------



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to