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);
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?