Skip to content

Add basic support for simpler ESC/POS printers (e.g. Gertec) #569

@taylorlacort

Description

@taylorlacort

Context

This fork aims to extend the ESCPOS-ThermalPrinter-Android library to better support
simpler ESC/POS thermal printers, such as Gertec models, which have limited command
support compared to more advanced printers.

Some ESC/POS commands currently used by the library are not fully supported by these
printers, causing printing failures or unexpected behavior.

Goal

Provide a more compatible printing flow for basic ESC/POS printers by:

  • Reducing dependency on advanced or non-standard ESC/POS commands
  • Allowing simpler command sequences (text, alignment, line feed, cut when available)
  • Making the library more tolerant to printers with limited ESC/POS implementations

Scope (initial)

  • Focus on basic text printing
  • Improve compatibility with printers like Gertec
  • Avoid changes that may break existing supported printers
  • Adjust command usage only where necessary

Out of scope (for now)

  • Image optimization
  • QRCode / Barcode improvements
  • Bluetooth/Wi-Fi connection changes
  • Printer-specific SDK integrations

Acceptance criteria

  • Basic text printing works reliably on simpler ESC/POS printers
  • No regressions for currently supported printers
  • Changes are isolated and documented

Notes

This issue will be used as a reference for incremental commits related to ESC/POS
compatibility improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions