Skip to main content

SetValue

Sets field value

Inherited from ApiBaseField.SetValue.

Example

Set value to text field in a PDF document.

// How can I set value using a base field in a PDF document?

// Set value for a base field in a PDF document.

let doc = Api.GetDocument();
let page = doc.GetPage(0);
let textField = Api.CreateTextField([10, 10, 160, 30]);
page.AddObject(textField);

textField.SetValue('Name Surname');