aspect_ratio

Type: float

This parameter has largely been replaced by the columns parameter and is not recommended for new projects. Its existence and limited functionality will be maintained for compatibility with previous versions of the kit.

Some two dimensional barcode types require the user to choose the height to width ratio of the final image (in terms of rows and columns of bars). PDF 417 and Codablock-F allow the user to specify the height to width ratio, and RSS (Expanded stacked) allow the width of the symbol in segment pairs to be specified.

For Codablock F symbols the aspect_ratio specifies the desired height to width ratio for the symbol. dBarcode will do its best to comply - but will determine the final result within the limits set by the symbology.

For PDF417 symbols dBarcode allows the user to specify the desired height/width ratio of the target image by specifying a positive value in the range 0.1 - 10.0.

In specifying a value the user should bear in mind that, in general, PDF barcodes a best reproduced as tall thin images rather than short fat ones. Also the PDF417 standard requires a minimum of 3 rows.

This parameter will be ignored for other barcode types, although some will support the columns parameter instead.

 

More:

columns