Set width or height of form fields using Aspose.PDF for .NET - loop through collection of fields

When I convert a Word document with form fields to PDF, it successfully renders the form fields in the PDF file, but they are very large.

Is there a way that I can loop through the collection of form fields in the pdf document and modify the width and height of the PDF form fields?

Thanks for your help.

//Sample Code

Document doc = new Document(docStream);
doc.SaveOptions.PdfExportFormFieldsAsText = false; //So that form fields will render in PDF

MemoryStream ms = new MemoryStream();
doc.Save(ms, SaveFormat.AsposePdf);
ms.Seek(0, SeekOrigin.Begin);

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(ms);

Pdf pdfDoc = new Pdf();
pdfDoc.IsImagesInXmlDeleteNeeded = true;
pdfDoc.BindXML(xmlDoc, null);
pdfDoc.Save(formName, Aspose.Pdf.SaveType.OpenInBrowser, HttpContext.Current.Response);
//At this point, the form fields are present in the pdfDoc, but they are too tall and wide
//Can I use PDF Kit to resize the form fields?

Dear timg,

After the success converting to PDF document, you can revise it with Aspose.Pdf.Kit. The function FormEditor.MoveField(String fieldName, float llx, float lly, float urx, float ury) can place your fields at new positions if width(urx-llx) and height(ury-lly) is remaining. It can also resize your fields by providing proper parameters (llx, lly, urx, ury). Please refer to our [Wiki](https://forum.aspose.com/Wiki/default.aspx/Aspose.Pdf.Kit/ChangeFormFieldAttibute.html) for detail.

Notice: at present it only works for AcroForm fields in Adobe 6.0 and below. The support for XFA fields in Adobe 7.0 and above will be release soon.

Best regards.