zplCore.comzplCore.com
class11 members

EplRenderer

public sealed class EplRenderer

Virtual EPL2 printer. EPL commands are translated to equivalent ZPL and rendered by ZplRenderer, so EPL labels get the same fonts, barcodes and outputs. EplRenderer.ToZpl exposes the translation (EPL → ZPL converter).

Not thread-safe (stored forms/graphics, wrapped ZplRenderer); use one instance per thread.

Try it online on zplCloud.com: EPL2 to ZPL

Constructors

SignatureDescription
# EplRenderer(ZplRenderSettings? settings = default)

Properties

PropertyTypeDescription
Clock { get; set; }Func<DateTime>Time used for TT/TD fields.
Settings { get; }ZplRenderSettings
Store { get; }ZplResourceStorePrinter memory shared with the underlying ZPL renderer.

Methods

Method SignatureReturnsDescription
# AddGraphic(string name, byte[] pcx)voidStores a PCX graphic for GG (like GM).
# ProcessCommands(string epl)List<byte[]>
# ProcessCommands(byte[] epl)List<byte[]>Raw EPL bytes (default code page 850, binary graphic data kept intact).
# ProcessFile(string path)List<byte[]>
# Render(string epl)List<ZplRenderResult>Renders to bitmaps (caller disposes).
# ToZpl(string epl)stringTranslates EPL2 to ZPL II (one ^XA…^XZ per printed label).

Events

EventHandler TypeDescription
PrinterControlEventHandler<ZplPrinterControlEventArgs>Raised for EPL commands that don't affect the image (S, D, I, O, U, JF ...), as ZPL-style commands.