# Creating barcodes with the ZXing library
Creating barcodes on a document page takes place via the writeBarcode
method. In this method, the target file, the barcode text, the size of the barcode, and the barcode configuration are transferred as parameters.
ELOasUtils.writeBarcode(IXconnect ixConnect, File targetFile,
String barcodeText, int width, int height,
String barcodeConfig)
Sample configuration
String barcodeConfig = "AZTEC_LAYERS:13|CHARACTER_SET:UTF8|
DATA_MATRIX_SHAPE:FORCE_RECTANGLE|
ERROR_CORRECTION:M|MARGIN:20|PDF417_COMPACT:TRUE|
PDF417_COMPACTION:NUMERIC|PDF417_DIMENSIONS:5,10,5,10";
A call to a static ELOas method in an ELOas rule looks like this:
var result = Packages.de.elo.mover.utils.ELOAsUtils.
getBarcode(emConnect,barcodeFile, 1, barcodeConfig);
This enables you to use barcode information in ELO Automation Services.