pdf - Align AcroFields in java -
i'm using itextsharp populate info pdf templates, created in openoffice. populating fine, i'm getting proper pdf. in pdf summary come, place want align text against template.
i'm doing below code not work.
fields.setfieldproperty(fieldname, "fflags", pdfformfield.q_left, null);
please help. thanks.
assuming have pure acroform , not hybrid form indicated in comment, how alter quadding of field:
acrofields form = stamper.getacrofields(); acrofields.item item; item = form.getfielditem("fieldleft"); item.getmerged(0).put(pdfname.q, new pdfnumber(pdfformfield.q_left)); item = form.getfielditem("fieldcenter"); item.getmerged(0).put(pdfname.q, new pdfnumber(pdfformfield.q_center)); item = form.getfielditem("fieldright"); item.getmerged(0).put(pdfname.q, new pdfnumber(pdfformfield.q_right));
the quadding isn't part of field flags wrongly assumed. it's , entry of widget annotation dictionary.
java pdf itextsharp itext
No comments:
Post a Comment