Skip to content

Feature Request: Receipt Preview Support (Image/Bitmap) Without Printer Connection #108

@walid-ashik

Description

@walid-ashik

While developing POS applications using this package, a common workflow is to use an emulator rather than a physical device. However, since the package currently requires a connected Sunmi printer to render output, there is no way to visually verify receipt formatting during development.

This creates a significant limitation:

  • Developers cannot preview layout, alignment, or formatting changes without printing on a physical device.
  • Iteration becomes slow and inefficient, requiring constant access to hardware.
  • It negatively impacts developer experience, especially during early-stage UI/UX adjustments.

Proposed Solution
Introduce a feature that allows rendering the receipt as an image (bitmap) or preview when a printer is not connected. This could:

  • Simulate the printed output directly on the emulator
  • Allow faster iteration and debugging of receipt layouts
  • Reduce dependency on physical hardware during development

This kind of preview capability would greatly improve the development workflow and make the package more flexible for broader use cases.

I’d be happy to contribute or help implement this feature if it aligns with the project direction.

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