Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Code 128 string #13

Closed
asantaballa opened this issue May 2, 2017 · 2 comments
Closed

Getting Code 128 string #13

asantaballa opened this issue May 2, 2017 · 2 comments
Labels

Comments

@asantaballa
Copy link

Have unusual requirement and was wondering it could use ZXing without mods. I am rpelacing an old Foxpro application which generates a Code 128 string into and extract. So not the bar code image, but the intermediate string after converting the raw string input internally to Code 128. for instance the free online encoder page from ID Automation (http://www.bcgen.com/fontencoder/) converts the string "MA$7#LXB #000074232088" to the corresponding Code 128 string "ÌMA$7#LXBÂÂ#ÇÂÂj74x.Î".

Because the consumer of my extract is not changing I need to be able to generate the string as the old app did. I expect that the string is generated within ZXing internally while generating a Code 128 barcode bitmap.

Am asking only if you can answer of the top of your head. If not, I'd be glad to go into the code and research myself.

Thanks in advance for any help and for mantaingin the great product....--Al-

@micjahn
Copy link
Owner

micjahn commented May 3, 2017

Sorry, the Code128 writer class doesn't use an internal representation of the content. It converts the string directly to bit patterns. There is no "high level encoder" like other barcode types uses it.

@micjahn micjahn closed this as completed May 3, 2017
@asantaballa
Copy link
Author

Sad to hear, but thanks for quick response.

--Al-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants