The setAspect() function sets either the number of codeword columns in the symbol or the height-to-width ratio of the symbol as it would appear in the PD3 font (the library does not know which font you will ultimately reproduce the barcode with). The function must be called before a barcode() call.
Declaration
Int setAspect(int V1, int V2)
If V2 is 0, V1 specifies the number of codeword columns in the symbol. In this case V1 may be 3 or greater.
If V2 is greater than or equal to1 the ratio V1/V2 is used to specify a target aspect ratio for the symbol as it would appear in the PD3 font. In this case the V1/V2 ratio must be between 0.1 and 10.0.
Note that not every aspect ratio is possible – PDF417 requires at least 3 rows – and the library will do the best it can. Note also that setAspect() does NOT operate for MicroPDF barcodes which have their number of columns set through the Level parameter.
The function returns 1 if successful or 0 is the parameters are invalid.
Appended symbols are not supported at this time.