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

Max-width option instead of fixed width option #21

Open
basav22 opened this issue May 19, 2017 · 0 comments
Open

Max-width option instead of fixed width option #21

basav22 opened this issue May 19, 2017 · 0 comments

Comments

@basav22
Copy link

basav22 commented May 19, 2017

While creating barcode, we need to give fixed width. So, sometimes, generated barcode ends up taking more space than required. It would be great to return barcode image of exact size of barcode. So, one way could be to give max-width option. And try generating barcode image of actual size(not of max-width).

let code128 = Barcode('code128', { data: invoiceData.packageCode, maxWidth: 230, height: 50 });

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

1 participant