Hi,

Removing formfields _manually_ by AcrobatPro reduces the resulting 
PDF-filesize ("Save As...") by expected amounts of bytes.
But doing this by iText API

            AcroFields fields = stamper.getAcroFields();
            HashMap fieldMap = fields.getFields();
            Iterator<String> fieldnames = new 
HashSet(fieldMap.keySet()).iterator();
            while (fieldnames.hasNext())
            {
                String fieldname = fieldnames.next();
                if (fieldname.startsWith("question"))
                {
                    fields.removeField(fieldname);
etc...

will NOT reduce filesize.
We need minimum filesize because of application-requirements.

Thanks,
Joerg


------------------------------------------------------------------------------
_______________________________________________
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