laaspen.blogg.se

Import data into pdf form
Import data into pdf form









import data into pdf form

PdfComboBoxFormFieldFacade nationalityField = acroForm.GetComboBoxFormField("Nationality") PdfRadioGroupFormFieldFacade genderField = acroForm.GetRadioGroupFormField("Gender") PdfTextFormFieldFacade addressField = acroForm.GetTextFormField("Address") Enable multiline text in the text field: VisaField.InputType = PdfTextFieldInputType.Comb Divide field text into equally spaced positions: PdfTextFormFieldFacade visaField = acroForm.GetTextFormField("VisaNo") PdfAcroFormFacade acroForm = documentFacade.AcroForm PdfDocumentFacade documentFacade = pdfDocumentProcessor.DocumentFacade

import data into pdf form

Using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor()) View Example: How to Change Form Field Parameters The code sample below changes available form field parameters: Returns properties of a specific form field type. Obtains properties of a field with a specific name. Utilize one of the following methods to get form field properties: Method

import data into pdf form

You can change form field and appearance properties. Use the PdfDocumentFacade.AcroForm property to get interactive form field options. The PdfDocumentFacade class allows you to change the PDF document without access to its inner structure. Renaming.",ĭo While ()Ĭ = Guid.NewGuid().ToString() Specify radio group's selected index and appearance: Add the second radio button to the group: Add the first radio button to the group and specify its location: PdfAcroFormField.CreateRadioGroup("Gender Group", 1) New PdfAcroFormTextBoxField("text box", 1, new PdfRectangle(230, 690, 280, 710)) Processor.LoadDocument(".\\.\\Document.pdf") Using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) This example creates a text box and radio button group fields, and adds them to a document. The table below lists available form fields and API used to create each type. Read Tutorial: Add Interactive Form Fields as Graphic Content You can import or export AcroForm data to various formats. PDF Document API allows you to create, fill, flatten, and delete fillable PDF forms. A PDF document can contain interactive forms (AcroForms) with fillable form fields (text fields, buttons, list boxes, and so on).











Import data into pdf form