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

Free Support Forum - aspose.com

Add text field to footer

We need to insert a text field in the footer of an existing pdf document. We will then use a javascript to update the text field to show todays date every time the pdf file is opened. I can see how to add the javascript but I can’t find any way to add a text field to the footer, is there any way to accomplish this?

Hi Ola,

You can use AddField method to add the form field at any location on a PDF page. If you want to add a field in the footer then make sure to specify the location coordinates which lie in the footer area. For example, the following code snippet adds the text field in the footer area:

//create a FormEditor object and add a new field

Aspose.Pdf.Kit.FormEditor formEditor = new FormEditor(“input.pdf”, “output.pdf”);

formEditor.AddField(FieldType.Text, “fieldname”, 1, 100, 20, 200, 40);


For further details on working with form fields, you can check the help topics on this link.

I hope this helps. If you have any further questions, please do let us know.