ZplRedact
public static class ZplRedactRedaction of personal data in ZPL for support tickets, logs and sharing labels with vendors: names, addresses, phone numbers, e-mail addresses, tracking numbers, references, comments and unclassified text are replaced (same length and character classes, so the label keeps its layout), barcodes get same-length dummy data that keeps the symbology and check digits valid (or are removed), and the data is also removed where it hides outside the printed fields: ^FX comments, ^DF stored formats, ^FN defaults and prompts, ^XF field data, ^SN start values, ^RF RFID data, MaxiCode / PDF417 carrier messages and text outside of commands. Images cannot be inspected; they are reported or, with RedactCategories.Graphics, blanked.
Assistive and rule-based (see ZplExtract): there is no guarantee that every piece of personal data is found. The default (RedactCategories.Default) is conservative and also redacts text it cannot classify. Review the output before sharing it. The report never contains the original values.
Methods
| Method Signature | Returns | Description |
|---|---|---|
static # Run(string zpl, RedactOptions? options = default) | RedactResult | Redacts zpl; see RedactOptions for categories and modes. |
static # Run(byte[] zpl, RedactOptions? options = default) | RedactResult | Redacts raw ZPL bytes (decoded like the renderer: UTF-8 when valid, else code page 850). |

