Hello!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for using Aspose components.
I see the problem with form fields. They are really rendered without separation. Let’s discuss how we can improve this.
Form field as a document element has no explicitly specifiable width. It’s a “rubber” box which can be given a value and rendered in MS Word to fit it. If you open Properties on any of them you can specify text and the form field will be expanded. Remove the text from Properties and it is restored to some default size. But you cannot anyhow specify width in Properties dialogue.
We can output empty form fields as several spaces or non-breaking spaces. But this couldn’t be always what MS Word does. It’s a rendering problem. Aspose.Words doesn’t render anything but gives information stored in the document model in appropriate form to the renderer, namely to Aspose.Pdf.
Usually form fields are utilized together with table formatting. If we put every form field and to separate table cell we can fully control its size. They can be given either minimum or exact height. Width should be enough to fit form field data without wrapping in most cases. You can refactor your document template using this simple tip. Let me know whether this helps you.