ImportOptions
public sealed class ImportOptionsOptions of Label.FromZpl.
Constructors
| Signature | Description |
|---|---|
# ImportOptions() |
Properties
| Property | Type | Description |
|---|---|---|
CompareTolerance { get; set; } | int | Pixel tolerance of the fidelity comparison (see ImageCompare.Compare; 0 = exact pixels). |
DefaultHeight { get; set; } | int? | |
DefaultWidth { get; set; } | int? | Label size used when a format has no ^PW / ^LL (dots; null = 4 × 6 in at the detected resolution). |
DetectPlaceholders { get; set; } | bool | Field data that is exactly ${NAME} or ${NAME:default} becomes a data binding to NAME with the default as text (the placeholder convention of zplCloud templates). |
Dpi { get; set; } | int? | Printer resolution the ZPL was written for (null = detect from ^MU, label width and field extents; 203 when unknown). |
Fallback { get; set; } | ImportFallback | Handling of fields without an exact typed equivalent. |
FontProvider { get; set; } | Func<string, byte[]> | Supplies ^A@ / ^CW fonts that are not downloaded in the ZPL (as in ZplRenderSettings.FontProvider). |
IncludeImages { get; set; } | bool | Keep PNG renders of the original, the re-exported label and their diff in ImportedLabel. |
MeasureFidelity { get; set; } | bool | Render the re-exported label and compare it with the original (fills ImportedLabel.Fidelity). |
Unit { get; set; } | LabelUnit | Unit of the imported labels (positions and sizes). LabelUnit.Dots keeps the exact ZPL values. |
UseSystemFonts { get; set; } | bool | Use installed system fonts for unknown ^A@ fonts (as in ZplRenderSettings.UseSystemFonts). |

