PeachDrawing.PDF

PdfFormBuilder Class

Adds interactive form fields (AcroForm text fields, check boxes, radio buttons and drop-downs) to the pages of a document.

public sealed class PdfFormBuilder

Inheritance System.Object → PdfFormBuilder

Remarks

Get one from CreateFormBuilder(PdfRenderContext, string) and call AddField(PdfComposerPage, PdfFormFieldDefinition) for each field once its page exists. Radio buttons that share a name become the buttons of one field. Each field’s look is drawn once per state by its Appearance into an appearance stream, so a reader shows it as drawn until the user edits it.

Methods  
AddDisclosureAsync(PdfComposerPage, PdfDisclosureDefinition) Adds a region a reader can open and close without scripting: a hidden rectangle holding PaintContent, and a transparent button over the heading; the button’s Hide action shows the rectangle (and removes the button), and clicking the rectangle hides it again. A reader that does not run them (a printer, a viewer without interactive forms) shows the closed page.
AddField(PdfComposerPage, PdfFormFieldDefinition) Creates the field (or, for a radio button, the button and its group) and places it on page.