The size of barcode depends on the following parameters:
- The length (size) of codetext. Larger codetext value will generate large size of barcode
- setXDimension() and setYDimension() methods. You can set lower values (less than 1.0F) to reduce the size of barcode. See sample code snippet below
- setHeight() and setWidth() methods. But, the image will be cropped, if large barcode is generated and width/height is smaller than the size of actual generated barcode.
Regarding setting of the module size, I will get back to you after consulting with the developers.
Yes, currently the error levels can be set as fixed constant values. If these values are not sufficient for your requirements, please reply, so that I can put suggestion of setting custom values for error level.
Below is the sample code snippet to generate Aztec barcode according to Requirement 2:
BarCodeBuilder barCode = new BarCodeBuilder();