Class PdfFormFiller
Fills form fields and writes the result as an incremental update: each changed field gets its new /V, each of its widgets a regenerated appearance (text and choice fields: the value laid out in the field's /DA font, size and colour, with its alignment, multi-line wrapping, comb cells and /MK background and border; buttons: their /AS state). Viewers that trust appearance streams (most do) show exactly this; the original bytes are untouched, so signatures on earlier revisions stay valid.
public static class PdfFormFiller
- Inheritance
-
PdfFormFiller
- Inherited Members
Methods
Apply(PdfVectorDocument, byte[], IEnumerable<PdfFieldChange>)
public static byte[] Apply(PdfVectorDocument document, byte[] original, IEnumerable<PdfFieldChange> changes)
Parameters
documentPdfVectorDocumentoriginalbyte[]changesIEnumerable<PdfFieldChange>
Returns
- byte[]
ParseDefaultAppearance(string?)
Parses a /DA (default appearance) string. A missing or empty string gives /Helv, size 0 (auto) and black.
public static PdfDefaultAppearance ParseDefaultAppearance(string? da)
Parameters
dastring