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

Generating Code128A #102

Closed
judylin1 opened this issue Feb 28, 2018 · 3 comments
Closed

Generating Code128A #102

judylin1 opened this issue Feb 28, 2018 · 3 comments

Comments

@judylin1
Copy link

judylin1 commented Feb 28, 2018

I have an existing barcode encoded in Code128A with text "12ABC456". I don't think parse or parsefnc is necessary, but even testing with / without those, the barcode does not match my existing one. Is there a way to force a CODE128A barcode to be generated?

For reference, the barcode I have looks like the attached barcode.
linear
The one generated by bwip looks like this:
download

@metafloor
Copy link
Owner

BWIPP only supports two encoding methods for code128 - raw and auto - and there is no way to force the encoder to use only subset A.

Is there a reason why only subset A can be used?

If you can guarantee that the text to encode will always be subset A characters, it is not hard to generate the raw encoding. As a reference, see the code128 wikipedia page.

@terryburton
Copy link

The following issue represents the current status of fixed-mode support in the underlying BWIPP library:

bwipp/postscriptbarcode#58 (comment)

This linked workaround should be sufficient to generate your required Code 128A:

Encoder: code128
Data: ^103^017^018^033^034^035^020^021^022
Options: raw

Representing:

[Start A] [1] [2] [A] [B] [C] [4] [5] [6]

@judylin1
Copy link
Author

You guys are awesome!! Thanks for the super quick clarification!

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

No branches or pull requests

3 participants