mercredi 25 juin 2014

increase width of AcroFields(iTextSharp)


Vote count:

0




'm using iTextSharp to populate the data to PDF Templates, which is created in OpenOffice. it populating fine, I'm getting proper PDF, but some where i want to increase the width of the AcroFields.


I did below code. it is increasing the width but message is not displaying.



AcroFields.Item fldItem = fields.getFieldItem(fieldName);
for (int i =0; i < fldItem.size(); ++i) {
PdfDictionary widgetDict = fldItem.getWidget(0);
PdfArray rectArr = widgetDict.getAsArray(PdfName.RECT);
float origX = rectArr.getAsNumber(0).floatValue();
rectArr.set( 2, new PdfNumber( origX + 12 + 60 ) );
}


in below image highlighted one. actual string is 10000 SUPERIOROPTICAL 123 4567 89 enter image description here


please help.

thanks.



asked 33 secs ago

Rajesh

428





Aucun commentaire:

Enregistrer un commentaire