![]() ![]() NET Document component can doWe provide powerful & profession document & image controls: Convert MS word file to Image in. ((TextBoxField)field).Value = "new text" įile.WriteAllBytes( "ModifyFormField.pdf", pdfFile.Export(document)) ((RadioButtonField)field).Value = ((RadioButtonField)field).Options ![]() ![]() ListBoxField list = new ListBoxField( "listBox1") PageContentBuilder builder = new PageContentBuilder(page) ĬheckBoxField check = new CheckBoxField( "checkBox1") ī(50, topOffset) īuilder.DrawWidget(check, new Size(10, 10)) ī(50 + 10 + padding, topOffset) ĬomboBoxField combo = new ComboBoxField( "comboBox1") Ĭ( new ChoiceOption( "Combo 1")) Ĭ( new ChoiceOption( "Combo 2")) Ĭ( new ChoiceOption( "Combo 3")) īuilder.DrawWidget(combo, new Size(100, 30)) ī(50 + 100 + padding, topOffset) PdfDocument document = new PdfDocument() Please note, the RadioButton Form field is some different from other Form fields, you need insert each RadioOption in RadioButtonField to page manually. Second, create CheckBox, ComboBox, ListBox, RadioButton, TextBox FormField, initialize each Form field value, define each Form field size and position, and insert each Form field to page. This C# tutorial shows how to create and add Form fields to Pdf file.įirst, make a new PDF document, and add a new PDF page to document. How to Create and Insert Form Fields to PDF in C# language Support all AcroForm type, contains Pdf PushButton, CheckBox, RadioButton, TextBox, ComboBox, ListBox, and Signature. How to Modify PDF Form Fields in C#.NET Code ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |