Giter VIP home page Giter VIP logo

Comments (2)

mike42 avatar mike42 commented on May 23, 2024

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.

zarafati avatar zarafati commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.