By continuing to use this site you agree to these cookies. Read the case study We evaluated many PDF tools and drivers. 9 For Each field As Field In form.Fields 10 Dim textField As TextField = TryCast(field, TextField) 11 If textField IsNot Nothing Then 12 textField.Value = textField.FullName 13 End If 14 15 For Each widget As Widget In field.Widgets 16 widget.Persistency = WidgetPersistency.Flatten 17 Next 18 Next 19 20 ' write flattened form back to disk 21 Using fileOut As New FileStream("..flattenform.pdf", FileMode.Create, FileAccess.Write) 22 form.Write(fileOut) 23 End Using 24 End Using The original PDF form: The flattened PDF form: No comments yet. 6 form.ScriptBehavior = ScriptBehavior.Format 7 8 'Flatten all form-data with the current value, except text-field field-name. If any company having good retetion strategies empolyees will not leave company, hence no body will be intrested in withdrawing PF OR PENSION Amount. After flattening, the user can no longer interact with the form fields.C# code sampleCopy 1 // open 'U.S. ruby-on-rails acrobat true-type-fonts non-ascii-characters pdf-form asked Mar 17 at 3:34 Walter 12 0 votes 0answers 136 views PDFBox extract labels of form pdf I have form PDF file as shown in image.FORMPDF Using PDFBox in Java I have retrieved text of the form fields. Everything was fine except the traditional Chinese characters. Process PDF Form Fields in C# Benefits Extract, insert, and update data in PDF Forms.