We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Replace text string with Text Form Field

We are currently using the Aspose.Total libraries to generate Microsoft Word documents which we convert to PDF using a non-Aspose PDF application. We now have a requirement to edit the PDF after the conversion in order to replace a text string with a Text Form Field.

For example, the PDF converted Word document might contain the string {{REPLACE}} and we would need to put a Text Form Field into the PDF at that location.

It looks like PDF.Kit has a method to insert the Text Field but I’m not sure how to locate the text string {{REPLACE}} in order to replace it.

Do you have any suggestions on the best approach to do this?


Hi Chris,

Sorry for that this feature is not yet supported. We will try to implement the interface of getting the location information of a string, but that would not be available in short time.


Is there any other way that we could achieve this save effect? Perhaps embedding an image in the Word document that would be converted to PDF? Maybe a bookmark?

Hi, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Could you please elaborate your requirement so that appropriate solution could be provided.

Hi Chris,

We have no solution to replace text or image with form field on existing PDF. You can try add the form in Word and convert it to PDF using Aspose.Words + Aspose.Pdf. Please set SaveOptions.PdfExportFormFieldsAsText to false.