escpos-ts API - v1.0.0
    Preparing search index...

    Interface MediaWidth

    Print-media width expressed in both physical (mm) and raster (pixels) units.

    The 'Unknown' sentinel is used when the value is not specified in the capabilities database and cannot be assumed.

    1.0.0

    interface MediaWidth {
        mm: number | "Unknown";
        pixels: number | "Unknown";
    }
    Index

    Properties

    Properties

    mm: number | "Unknown"

    Physical paper width in millimetres, or 'Unknown' if not specified.

    pixels: number | "Unknown"

    Printable area width in pixels at the printer's native DPI, or 'Unknown' if not specified. This value governs image centering in Escpos.image.