By Date: <-- -->
By Thread: <-- -->

Positioning of data in fields



Andy Levy wrote:

After some final research and testing, we've found the culprit.

The misaligned fields have the "multiline" option set.  When we
uncheck this option in Acrobat and then fill the PDFs via iText,
everything aligns as expected.  We will have to go through all the
documents and make this change manually.

If you're talking about lots of PDF documents,
I think you could do this with iText:

AcroFields form = reader.getAcroFields();
HashMap fields = form.getFields();
String key;
for (Iterator i = fields.keySet().iterator(); i.hasNext(); ) {
 key = (String) i.next();
 if (form.getFieldType(key) == AcroFields.FIELD_TYPE_LIST)
   form.setFieldProperty(key, "clrfflags", PdfFormField.MULTILINE, null);
}

br,
Bruno


------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions