next-barcode icon indicating copy to clipboard operation
next-barcode copied to clipboard

Change barcode width and height by centimeter?

Open KimTrongNguyen opened this issue 2 years ago • 1 comments

Hi, I used this react-barcodes to generate barcode from text, but in the requirement for my application I need to adjust the width and height of the barcode image in centimeter. Currently I read in the documentation it says that width is the width of each bar? How to adjust the barcode image using centimeter? Thank you!

KimTrongNguyen avatar Aug 05 '21 00:08 KimTrongNguyen

@arestvblog Mostly we use width and height of barcode in pixel. You can convert centimeter to pixel manually and then adjust the barcode image in pixel. Thank you so much!

Bunlong avatar Aug 05 '21 01:08 Bunlong