Comments (2)
I also get one character when I send this to a physical ESC/POS printer, so I'm not yet convinced there's an issue.
Would you mind sharing some more information about the type of printer that this document is intended for, and what it's supposed to look like?
$ hexdump -C ascii.txt
00000000 1b 3d 01 1d 28 4a 02 00 01 00 1d 28 4a 02 00 02 |.=..(J.....(J...|
00000010 00 1d 28 4a 02 00 03 00 1b 63 30 02 1b 63 31 02 |..(J.....c0..c1.|
00000020 1b 63 33 00 1b 32 1b 52 00 1b 74 10 1d 62 01 1d |.c3..2.R..t..b..|
00000030 50 00 00 1b 4a 00 1b 4a c3 bf 1b 4a c2 93 1b 24 |P...J..J...J...$|
00000040 c2 88 00 1d 38 4c c2 b7 34 00 00 30 70 30 01 01 |....8L..4..0p0..|
00000050 31 c3 b8 00 c2 b3 01 00 00 00 00 00 00 00 00 00 |1...............|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c3 a0 |................|
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c3 a0 |................|
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c3 a0 |................|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000c0 01 c3 be 00 00 00 00 00 00 00 00 00 0e 00 00 00 |................|
000000d0 03 c2 80 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000e0 00 07 c3 bf 00 00 00 00 00 00 00 00 00 0e 00 00 |................|
000000f0 00 03 c2 80 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000100 00 00 07 03 00 00 00 00 00 00 00 00 00 |.............|
0000010d
Which is currently understood by esc2text
as ..
$ php esc2text.php ascii.txt -v
[DEBUG] SelectPeripheralDeviceCmd
[DEBUG] UnknownDataCmd
[DEBUG] UnknownDataCmd
[DEBUG] UnknownDataCmd
[DEBUG] UnknownCommandOneArg
[DEBUG] UnknownCommandOneArg
[DEBUG] SelectPaperEndSensorsCmd
[DEBUG] SelectDefaultLineSpacingCmd
[DEBUG] SelectInternationalCharacterSetCmd
[DEBUG] SelectCodeTableCmd
[DEBUG] EnableSmoothingCmd
[DEBUG] CommandTwoArgs
[DEBUG] PrintAndFeedCmd (LineBreak)
[DEBUG] PrintAndFeedCmd (LineBreak)
[DEBUG] TextCmd (TextContainer)
โ[DEBUG] PrintAndFeedCmd (LineBreak)
[DEBUG] TextCmd (TextContainer)
รด[DEBUG] SetAbsolutePrintPosCmd
[DEBUG] TextCmd (TextContainer)
[DEBUG] GraphicsLargeDataCmd
from escpos-tools.
@mike42 for now i want just to get the conversion of this file into a HTML doc without using printer. but later i will use TM-T20II https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=331.
And about what it's supposed to look like, I have no idea because I don't know the interpretation of the ESCPOS commands (maybe some text and images). that's why i asked you to check if the result that i've get is it true or not
from escpos-tools.
Related Issues (20)
- NC / Python binary forwarder | dumper HOT 1
- Error with some png image HOT 4
- Weird binary file, library wasn't able to give any output HOT 1
- Printing images HOT 2
- Add support for upside-down, black-white invert printing modes HOT 1
- Print Margin on Top HOT 2
- Support for QR codes HOT 5
- How to gerate Invoice like this? Or how to add html in print view? HOT 2
- esc2html encoding HOT 3
- Add support for user-defined character sets HOT 1
- esc2html output error HOT 2
- fopen(/tmp/test.bin): failed to open stream: No such file or directory HOT 1
- esc2html: Uncaught ImagickException: insufficient image data in file
- Composer support HOT 1
- Add Docker support HOT 1
- Unable to generate Barcode HOT 1
- Unable to generate with Esc2html HOT 3
- Composer issue : Failed to extract mike42/escpos-php HOT 1
- For those who need encoding, use it. 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 escpos-tools.