Generate a barcode using a GET request with parameters in the route and query string.
generate(barcodeType: EncodeBarcodeType, data: string): Buffer;| Name | Type | Description | Notes |
|---|---|---|---|
| barcodeType | EncodeBarcodeType | Type of barcode to generate. | |
| data | string | String that represents the data to encode. | |
| dataType | EncodeDataType | Type of data to encode. Default value: StringData. | [optional] |
| imageFormat | BarcodeImageFormat | Barcode output image format. Default value: png. | [optional] |
| textLocation | CodeLocation | Specify the displayed text location. Set to CodeLocation.None to hide CodeText. Default value depends on BarcodeType: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes. | [optional] |
| foregroundColor | string | Specify the display color for bars and content. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value starting with #. For example: AliceBlue or #FF000000. Default value: Black. | [optional] [default to ''Black''] |
| backgroundColor | string | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value starting with #. For example: AliceBlue or #FF000000. Default value: White. | [optional] [default to ''White''] |
| units | GraphicsUnit | Common units for all measurements. Default units: pixels. | [optional] |
| resolution | number | Resolution of the barcode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is a dot. | [optional] |
| imageHeight | number | Height of the barcode image in the specified units. Default units: pixels. Decimal separator is a dot. | [optional] |
| imageWidth | number | Width of the barcode image in the specified units. Default units: pixels. Decimal separator is a dot. | [optional] |
| rotationAngle | number | Barcode image rotation angle, measured in degrees. For example, RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle is not equal to 90, 180, 270, or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] |
| qrEncodeMode | QREncodeMode | QR barcode encode mode. | [optional] |
| qrErrorLevel | QRErrorLevel | QR barcode error correction level. | [optional] |
| qrVersion | QRVersion | QR barcode version. Automatically selects the smallest version that fits the data. | [optional] |
| qrECIEncoding | ECIEncodings | ECI encoding for QR barcode data. | [optional] |
| qrAspectRatio | number | QR barcode aspect ratio. Values: 0 to 1. | [optional] |
| microQRVersion | MicroQRVersion | MicroQR barcode version. Used when BarcodeType is MicroQR. | [optional] |
| rectMicroQrVersion | RectMicroQRVersion | RectMicroQR barcode version. Used when BarcodeType is RectMicroQR. | [optional] |
| code128EncodeMode | Code128EncodeMode | Code128 barcode encode mode. Controls which Code 128 subset (A, B, C, or mix) is used. | [optional] |
| pdf417EncodeMode | Pdf417EncodeMode | PDF417 barcode encode mode. | [optional] |
| pdf417ErrorLevel | Pdf417ErrorLevel | PDF417 barcode error correction level. | [optional] |
| pdf417Truncate | boolean | Whether to use truncated PDF417 format (removes right-side stop pattern). | [optional] |
| pdf417Columns | number | Number of columns in the PDF417 barcode. Values between 1 and 30. 0 for auto. | [optional] |
| pdf417Rows | number | Number of rows in the PDF417 barcode. Values between 3 and 90. 0 for automatic. | [optional] |
| pdf417AspectRatio | number | PDF417 barcode aspect ratio (height/width of the barcode module). Values are defined by the standard: 2 to 5 for MicroPdf417; 3 to 5 for Pdf417 and MacroPdf417. | [optional] |
| pdf417ECIEncoding | ECIEncodings | ECI encoding for PDF417 barcode data. | [optional] |
| pdf417IsReaderInitialization | boolean | Whether the barcode is used for reader initialization (programming). | [optional] |
| pdf417MacroCharacters | MacroCharacter | Macro character to prepend (structured append). | [optional] |
| pdf417IsLinked | boolean | Whether to use linked mode (for MicroPdf417). | [optional] |
| pdf417IsCode128Emulation | boolean | Whether to use Code128 emulation for MicroPdf417. | [optional] |
Buffer
Generate a barcode using a POST request with parameters in the request body in JSON or XML format.
generateBody(generateParams: GenerateParams): Buffer;| Name | Type | Description | Notes |
|---|---|---|---|
| generateParams | GenerateParams | Generation parameters. |
Buffer
Generate a barcode using a POST request with parameters in a multipart form.
generateMultipart(barcodeType: EncodeBarcodeType, data: string): Buffer;| Name | Type | Description | Notes |
|---|---|---|---|
| barcodeType | EncodeBarcodeType | See https://reference.aspose.com/barcode/net/aspose.barcode.generation/encodetypes/ | |
| data | string | String that represents the data to encode. | |
| dataType | EncodeDataType | Type of data to encode. Default value: StringData. | [optional] |
| imageFormat | BarcodeImageFormat | Barcode output image format. Default value: png. | [optional] |
| textLocation | CodeLocation | Specify the displayed text location. Set to CodeLocation.None to hide CodeText. Default value depends on BarcodeType: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes. | [optional] |
| foregroundColor | string | Specify the display color for bars and content. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value starting with #. For example: AliceBlue or #FF000000. Default value: Black. | [optional] [default to ''Black''] |
| backgroundColor | string | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value starting with #. For example: AliceBlue or #FF000000. Default value: White. | [optional] [default to ''White''] |
| units | GraphicsUnit | Common units for all measurements. Default units: pixels. | [optional] |
| resolution | number | Resolution of the barcode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is a dot. | [optional] |
| imageHeight | number | Height of the barcode image in the specified units. Default units: pixels. Decimal separator is a dot. | [optional] |
| imageWidth | number | Width of the barcode image in the specified units. Default units: pixels. Decimal separator is a dot. | [optional] |
| rotationAngle | number | Barcode image rotation angle, measured in degrees. For example, RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle is not equal to 90, 180, 270, or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] |
| qrEncodeMode | QREncodeMode | QR barcode encode mode. | [optional] |
| qrErrorLevel | QRErrorLevel | QR barcode error correction level. | [optional] |
| qrVersion | QRVersion | QR barcode version. Automatically selects the smallest version that fits the data. | [optional] |
| qrECIEncoding | ECIEncodings | ECI encoding for QR barcode data. | [optional] |
| qrAspectRatio | number | QR barcode aspect ratio. Values: 0 to 1. | [optional] |
| microQRVersion | MicroQRVersion | MicroQR barcode version. Used when BarcodeType is MicroQR. | [optional] |
| rectMicroQrVersion | RectMicroQRVersion | RectMicroQR barcode version. Used when BarcodeType is RectMicroQR. | [optional] |
| code128EncodeMode | Code128EncodeMode | Code128 barcode encode mode. Controls which Code 128 subset (A, B, C, or mix) is used. | [optional] |
| pdf417EncodeMode | Pdf417EncodeMode | PDF417 barcode encode mode. | [optional] |
| pdf417ErrorLevel | Pdf417ErrorLevel | PDF417 barcode error correction level. | [optional] |
| pdf417Truncate | boolean | Whether to use truncated PDF417 format (removes right-side stop pattern). | [optional] |
| pdf417Columns | number | Number of columns in the PDF417 barcode. Values between 1 and 30. 0 for auto. | [optional] |
| pdf417Rows | number | Number of rows in the PDF417 barcode. Values between 3 and 90. 0 for automatic. | [optional] |
| pdf417AspectRatio | number | PDF417 barcode aspect ratio (height/width of the barcode module). Values are defined by the standard: 2 to 5 for MicroPdf417; 3 to 5 for Pdf417 and MacroPdf417. | [optional] |
| pdf417ECIEncoding | ECIEncodings | ECI encoding for PDF417 barcode data. | [optional] |
| pdf417IsReaderInitialization | boolean | Whether the barcode is used for reader initialization (programming). | [optional] |
| pdf417MacroCharacters | MacroCharacter | Macro character to prepend (structured append). | [optional] |
| pdf417IsLinked | boolean | Whether to use linked mode (for MicroPdf417). | [optional] |
| pdf417IsCode128Emulation | boolean | Whether to use Code128 emulation for MicroPdf417. | [optional] |
Buffer
Recognize a barcode from a file on an Internet server using a GET request with a query string parameter. For recognizing files from your hard drive, use recognize-body or recognize-multipart endpoints instead.
recognize(barcodeType: DecodeBarcodeType, fileUrl: string): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| barcodeType | DecodeBarcodeType | Type of barcode to recognize. | |
| fileUrl | string | URL to the barcode image. | |
| recognitionMode | RecognitionMode | Recognition mode. | [optional] |
| recognitionImageKind | RecognitionImageKind | Image kind for recognition. | [optional] |
Recognize a barcode from a file in the request body using a POST request with JSON or XML body parameters.
recognizeBase64(recognizeBase64Request: RecognizeBase64Request): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| recognizeBase64Request | RecognizeBase64Request | Barcode recognition request. |
Recognize a barcode from a file in the request body using a POST request with multipart form parameters.
recognizeMultipart(barcodeType: DecodeBarcodeType, file: RequestFile): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| barcodeType | DecodeBarcodeType | See https://reference.aspose.com/barcode/net/aspose.barcode.barcoderecognition/decodetype/ | |
| file | RequestFile****RequestFile | Barcode image file. | |
| recognitionMode | RecognitionMode | Recognition mode. | [optional] |
| recognitionImageKind | RecognitionImageKind | Image kind for recognition. | [optional] |
Scan a barcode from a file on an Internet server using a GET request with a query string parameter. For scanning files from your hard drive, use scan-body or scan-multipart endpoints instead.
scan(fileUrl: string): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| fileUrl | string | URL to the barcode image. |
Scan a barcode from a file in the request body using a POST request with a JSON or XML body parameter.
scanBase64(scanBase64Request: ScanBase64Request): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| scanBase64Request | ScanBase64Request | Barcode scan request. |
Scan a barcode from a file in the request body using a POST request with a multipart form parameter.
scanMultipart(file: RequestFile): BarcodeResponseList;| Name | Type | Description | Notes |
|---|---|---|---|
| file | RequestFile****RequestFile | Barcode image file. |