Throws UnknownFieldError for names with no matching field and InvalidFieldValueError for type mismatches.
Text values are routed through sanitizePdfText: field appearance streams are generated with a standard font at save time, so an unencodable character would otherwise surface as an untyped pdf-lib error from save().
sanitizePdfText
save()
Throws UnknownFieldError for names with no matching field and InvalidFieldValueError for type mismatches.
Text values are routed through
sanitizePdfText: field appearance streams are generated with a standard font at save time, so an unencodable character would otherwise surface as an untyped pdf-lib error fromsave().