Built test page for testing tray output for debugging in main app.
This commit is contained in:
@@ -30,6 +30,39 @@ public class DocumentTypeConfig
|
||||
|
||||
// Text transformation rules
|
||||
public List<TextTransform> Transformations { get; set; } = new();
|
||||
|
||||
// Rust transformation properties
|
||||
/// <summary>
|
||||
/// Left margin/indent for all lines (in 1/100 inch units)
|
||||
/// </summary>
|
||||
public int LinePadding { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Remove both "Order #: " label and the order number entirely
|
||||
/// </summary>
|
||||
public bool RemoveOrderNumber { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Remove "Order #: " label but keep the order number (and make it bold)
|
||||
/// </summary>
|
||||
public bool RemoveOrderNumberLabel { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Add spacing before the order number (shifts it right)
|
||||
/// </summary>
|
||||
public string IndentOrderNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Vertical position adjustments per line (line number → adjustment in 1/100 inch)
|
||||
/// Negative values move up, positive values move down
|
||||
/// </summary>
|
||||
public Dictionary<int, int> RowShift { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Horizontal character trimming per line (line number → trim configuration)
|
||||
/// Removes characters from Start to End indices
|
||||
/// </summary>
|
||||
public Dictionary<int, RowTrimConfig> RowTrim { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -41,4 +74,20 @@ public class PageConfig
|
||||
public string PrinterName { get; set; } = string.Empty;
|
||||
public int TrayNumber { get; set; }
|
||||
public string? TrayLabel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configuration for row trimming (horizontal character removal)
|
||||
/// </summary>
|
||||
public class RowTrimConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// Start index of characters to remove (0-based)
|
||||
/// </summary>
|
||||
public int Start { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// End index of characters to remove (exclusive)
|
||||
/// </summary>
|
||||
public int End { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user