lsongdev / lsongdev/node-escpos

Please include an option to change the width of the paper

Open
#337 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

I use this module and get a print that is too long on each line, so it's not neat
![image](https://user-images.githubusercontent.com/48933993/106982871-7d02f300-6797-11eb-83ba-649e53191b5a.png)

and my printer should use a size of 30 instead of 48
this is the result
![image](https://user-images.githubusercontent.com/48933993/106982966-aa4fa100-6797-11eb-9fc7-8b0b7785329e.png)

I manually edit in node_modules
![image](https://user-images.githubusercontent.com/48933993/106983008-c81d0600-6797-11eb-8582-390f4d789514.png)
![image](https://user-images.githubusercontent.com/48933993/106983016-cbb08d00-6797-11eb-8765-aeed7542c5cd.png)
![image](https://user-images.githubusercontent.com/48933993/106983021-ceab7d80-6797-11eb-89e1-517b50070299.png)

Please include an option to set the character size per line along with the encoding options

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing encoding options and the hard-coded line width shown in the issue's screenshots. Confirm how the printer module exposes configuration and define done as allowing the per-line character size to be configured alongside encoding without editing node_modules.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.