43
CITIZEN UWP POS Print SDK - Programming Manual
2.3.12. PrintPDF417Async method
Syntax
Task<int> PrintPDF417Async (string data, int digits, int steps, int moduleWidth,
int stepHeight, int ECLevel, int alignment)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT]
Meaning
Setting range
data
[IN]
Barcode data
digits
[IN]
Digits number
0: automatic
1 - 30
steps
[IN]
Steps number
0: automatic
3 - 90
moduleWidth
[IN]
Module width
2 - 8 (dots)
Expressed in the unit of measure given by
stepHeight
[IN]
Height of step
2 - 8
ECLevel
[IN]
Error correction level
CMP_PDF417_EC_LEVEL_0: Level 0
CMP_PDF417_EC_LEVEL_1: Level 2
CMP_PDF417_EC_LEVEL_2: Level 2
CMP_PDF417_EC_LEVEL_3: Level 3
CMP_PDF417_EC_LEVEL_4: Level 4
CMP_PDF417_EC_LEVEL_5: Level 5
CMP_PDF417_EC_LEVEL_6: Level 6
CMP_PDF417_EC_LEVEL_7: Level 7
CMP_PDF417_EC_LEVEL_8: Level 8
alignment
[IN]
Barcode alignment
CMP_ALIGNMENT_LEFT: Left alignment
CMP_ALIGNMENT_CENTER: Center alignment
CMP_ALIGNMENT_RIGHT: Right alignment
Other Values:
Distance from the left-most print column to
the start of the barcode. Expressed in the unit
Description
This method is used to print PDF-417 barcode.
Please refer to the Command Reference of the printer for details on each parameter.
The designation of CMP_ALIGNMENT_CENTER and CMP_ALIGNMENT_RIGHT of the Barcode alignment
on the page mode is ignored.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.PrintPDF417Async(
"http://www.citizen-systems.co.jp/printer/index.html",
0, 0, 3, 3,
ESCPOSConst.CMP_PDF417_EC_LEVEL_0,
ESCPOSConst.CMP_ALIGNMENT_LEFT );