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

reduce barcode GS1-128 size #184

Open
Masber opened this issue Nov 8, 2020 · 1 comment
Open

reduce barcode GS1-128 size #184

Masber opened this issue Nov 8, 2020 · 1 comment

Comments

@Masber
Copy link

Masber commented Nov 8, 2020

Hi,

I am using bwip-js to print a gs1-128 barcode into an image and add it to a pdf using pdfmake. For some reason, the barcode does not fit in an A6 portrait page.

I am trying using "scale: 1" to reduce the size but it is not enough. Any idea of how could I reduce the barcode size further?

thank you

@metafloor
Copy link
Owner

scale=1 is a 1px module width, the narrowest bar/space element in code128. It can't be made any smaller.

What scale are you using when embedding the image in the pdf? Unless the barcode is really long (lots of data), I suspect that is the issue.

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

2 participants