Be aware that barcodes typically need 2-3 bars of whitespace on either side to be readable. The padding setting you show looks like it is computed to meet the barcode’s whitespace specification.
Yes but this is causing issues while scanning with Zebra scanner.
If I use same code from a website (like any barcode generator), it scans quickly. This is one does not scan unless operator bring Scanner way too closer