Not Able to set starting Point in Code128 Barcode

Skip to first unread message

PharmaCloud ERP

Jul 26, 2022, 3:38:23 AM7/26/22
to zxing

I have created CODE_128 Barcode using Zxing in Oracle.
This code works well. but I want to generate this Barcode with starting Point.
I'm trying to generate a report label that has multiple barcodes like this and its output is this: 

Oracle_Report BarCode.png

But I want this barcode to be printed as the same length and starting point as this label. 

Require_Report BarCode.png

private BitMatrix createMatrix() throws WriterException
            Map<EncodeHintType, Object> hintMap = new HashMap<EncodeHintType, Object>();        
            hintMap.put(EncodeHintType. CODE128_COMPACT,true );
            BitMatrix matrix = new MultiFormatWriter().encode(this.text,  BarcodeFormat.CODE_128, this.width, this.height, hintMap);            
            return matrix;

Please suggest the same!

Reply all
Reply to author
0 new messages