zplCore.comzplCore.com

ImportOptions

public sealed class ImportOptions

Options of Label.FromZpl.

Constructors

SignatureDescription
# ImportOptions()

Properties

PropertyTypeDescription
CompareTolerance { get; set; }intPixel 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; }boolField 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; }ImportFallbackHandling 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; }boolKeep PNG renders of the original, the re-exported label and their diff in ImportedLabel.
MeasureFidelity { get; set; }boolRender the re-exported label and compare it with the original (fills ImportedLabel.Fidelity).
Unit { get; set; }LabelUnitUnit of the imported labels (positions and sizes). LabelUnit.Dots keeps the exact ZPL values.
UseSystemFonts { get; set; }boolUse installed system fonts for unknown ^A@ fonts (as in ZplRenderSettings.UseSystemFonts).