Comments (6)
Hi,
Thank you for submitting this!
It seems that it's impossible to use standard printer's commands to justify content in different columns on the same line (source: qzind/tray#212)
So I've added some math to calculate text position in columns.
Could you please test if now it works as expected?
from esc_pos_printer.
Hi Andrey,
Thank you for looking into this. I pulled your changes, and it looks really good.
I tried it, but now it's wrapping to the next line. It looks like it's 3 or 4 characters that gets put onto the next line for me. I've been adjusting the column width differently to see if that helps, but it doesn't.
Here are my relevant printer specs:
Resolution: 203X180DPI
Print Width(max): 80mm
Fixed LeftMargin: 7mm
Fixed RightMargin: 9mm
Curent CodePage: PC437
Thanks again.
-Terence
from esc_pos_printer.
Hi Terence,
Normally you should be able to print 48 characters per line, could you please check that?
Are you trying to print the same data you shared above?
Thanks
from esc_pos_printer.
Hi Andrey,
I'm only able to print 42 characters per line. Also, I am printing the same data I shared above.
I looked up the specs on my printer:
Resolution: 203 DPI x 180DPI
Characters Per Line โ
Font A: 42 (80mm) / 37 (58mm)
Font B: 56 (80mm) / 49 (58mm)
Characters Size โ
Font A: 12 x 24
Font B: 9 x 17
Thanks.
from esc_pos_printer.
I'm facing the same issue using the Epson TM T88V-i (via network), if any alignment is used in
PosColumn, like bellow, the width of column is ignored or are wrapped to the next line, i have removed the align option and the alignment is being provided by width, but i think that is not a good deal..
Characters per line (default)
80mm -> Font A: 42; Font B: 56
58mm -> Font A: 30; Font B: 40
OBS: there is no margin applied to the printer
(I have another column above this code to complement the 12 columns)
from esc_pos_printer.
The issue should be fixed in the latest releases. Don't hesitate to reopen the ticket if the problem persists.
from esc_pos_printer.
Related Issues (20)
- Contains invalid characters during print - ascii.dart
- Please update image plugin to ^4.0.0
- How to use Thermal printer in flutter Web HOT 1
- No option to pass COLOR CODE in style HOT 1
- can't print a long image HOT 2
- Socket has not been initialized when calling rawBytes method
- Line spacing using the ESC 3 <n> command
- Please update image plugin to ^4.0.0 HOT 2
- can you update example ? wifi has depecrated
- [ binding] Print result: Error. Printer connection timeout
- it will also work with Android POS Machine?
- FYI: esc_pos_dart
- issues after flutter upgrade to last. HOT 1
- Issue in install pakage.
- Image printing problem is slow on real device
- lineThrough
- Star Micronics SP700 / SP742 - Ethernet (Column spacing)
- Can we print Marathi language text using esc_pos_printer HOT 1
- The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
- How to monitor printer status๏ผ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esc_pos_printer.