zplCore.comzplCore.com
enum3 members

ZplOptimization

public enum ZplOptimization

Level of ZplOptimizer.

Values

NameValueDescription
None0ZPL is left as generated.
Safe1Removes state commands (^BY, ^CF, ^FW, ^CI) that repeat the value already in effect within the same format. Line breaks and all other commands stay untouched.
Aggressive2ZplOptimization.Safe plus: line breaks between commands removed (so ^FO, ^A, ^FB … of a field form one run), default trailing ^GB parameters stripped (",B,0"), and ^GFA data re-encoded in the requested GraphicCompression (default: whichever is shortest).