MrzGenerator
Encodes an MRZ from a document or from field values, per ICAO Doc 9303.
Reports MrzGenerationFieldOverflow when a value is longer than its field, MrzGenerationFieldTooShort when a document's date part is shorter than 2 characters, and MrzGenerationUnsupportedCharacters when a name, number, type, state, nationality, optional-data, or date value has a character outside A-Z, 0-9, and <. Reports MrzGenerationNumericInNameField when an identifier or the name field contains a digit, and MrzGenerationInvalidSexValue when a document's sex character is not M, F, or <. A failure holds the first problem found.
Since
0.1.0
Functions
Encodes an MRV-A (Type-A visa) document as 2 MRZ lines. Reports as generate does.
Encodes an MRV-B (Type-B visa) document as 2 MRZ lines. Reports as generate does.
Encodes a document of any format as MRZ lines.
Encodes a TD1 (identity card) document as 3 MRZ lines. Reports as generate does.
Encodes a TD2 document as 2 MRZ lines. Reports as generate does.
Encodes a TD3 (passport) document as 2 MRZ lines. Reports as generate does.
Encodes an MRV-A (Type-A visa) document as 2 MRZ lines, converting its name field with a profile first. Works and reports as the MrzDocument overload with a profile does.
Encodes an MRV-B (Type-B visa) document as 2 MRZ lines, converting its name field with a profile first. Works and reports as the MrzDocument overload with a profile does.
Encodes a document of any format as MRZ lines, converting its name field with a profile first.
Encodes a TD1 (identity card) document as 3 MRZ lines, converting its name field with a profile first. Works and reports as the MrzDocument overload with a profile does.
Encodes a TD2 document as 2 MRZ lines, converting its name field with a profile first. Works and reports as the MrzDocument overload with a profile does.
Encodes a TD3 (passport) document as 2 MRZ lines, converting its name field with a profile first. Works and reports as the MrzDocument overload with a profile does.
Encodes an MRV-A (Type-A visa) MRZ from field values.
Encodes an MRV-B (Type-B visa) MRZ from field values.
Encodes a TD1 (identity card) MRZ from field values.
Encodes a TD2 MRZ from field values.
Encodes a TD3 (passport) MRZ from field values.