I can generate barcodes with 300 width, but no matter java library i use , i can't figure out how to generate one with smaller sises. If i try to resize the barcode it loses its quality and the online scaners don't reead it (https://zxing.org/w/decode.jspx). i already tryed using barcode4j, barbiecue, xzing, keepdynamic and IDAutomation libraries.
The string i want to use is this 22200435041996000168550010000001321731592625
The barcode should be as in the image below inside the rect thas has 7.9 centimeters. It's a pdf.
Can someone help me?