Sign In
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutionsAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch

Q — Label height and gap

Declares label height and the gap between two labels, in dots. The media sensor stops the feed according to these values.

Engine status: Rendered

This command produces visible output in the preview.

Syntax

Q<h>,<gap>

Example

N
q812
Q1218,24
P2

Open this example in the preview →

Open the validator →

Rendered example

Q1218,24

Output of the example above in our renderer (203 dpi). Not verified on a physical printer.

Parameters

ParameterMeaning
hLabel height (length) in dots; the preview clamps it to 64–4064 dots
gapGap between two labels in dots; used by the printer's feed, not drawn in the preview

Common mistake

Mixing up Q and q: uppercase Q sets label height and gap (Q1218,24), lowercase q the width. Writing the width as Q812 gives an 812-dot-tall label and leaves the width unchanged.

The same job in other languages

ZPL equivalent: ^LL · TSPL SIZE · TSPL GAP · Language comparison

All EPL commands

N · q · A · B · LO · LW · X · P · R · S · D · I · JF · ZT · ZB · O · FS · FE · FR · FK · FI · V · ? · PA

All EPL commands