
## USADriveIdCodetext class

Class for encoding and decoding the text embedded in the USA Driving License PDF417 code.

```js
new USADriveIdCodetext()
```

## Methods

| Name | Description |
| --- | --- |
| [addSubfileDesignator()](#addsubfiledesignator) | Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length w |
| [getAAMVAVersionNumber()](#getaamvaversionnumber) | AAMVA Version Number 00-99 |
| [getBarcodeType()](#getbarcodetype) | Returns barcode type of USA DL (Pdf417) |
| [getConstructedCodetext()](#getconstructedcodetext) | Construct codetext from USA DL data |
| [getIssuerIdentificationNumber()](#getissueridentificationnumber) | This number uniquely identifies the issuing jurisdiction and can be obtained by contacting the ISO Issuing Authority(AAM |
| [getJurisdictionSpecificSubfile()](#getjurisdictionspecificsubfile) | Jurisdiction Specific Fields |
| [getJurisdictionVersionNumber()](#getjurisdictionversionnumber) | Jurisdiction Version Number 00-99 |
| [getMandatoryElements()](#getmandatoryelements) | Mandatory elements (fields) of the card |
| [getNumberOfEntries()](#getnumberofentries) | Number 00-99 of subfiles |
| [getOptionalElements()](#getoptionalelements) | Optional elements (fields) of the card |
| [getSubfileDesignator()](#getsubfiledesignator) | Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length w |
| [initFromString(constructedCodetext)](#initfromstring) | Initialize USA DL object from codetext |
| [setAAMVAVersionNumber()](#setaamvaversionnumber) | AAMVA Version Number 00-99 |
| [setIssuerIdentificationNumber()](#setissueridentificationnumber) | This number uniquely identifies the issuing jurisdiction and can be obtained by contacting the ISO Issuing Authority(AAM |
| [setJurisdictionSpecificSubfile()](#setjurisdictionspecificsubfile) | Jurisdiction Specific Fields |
| [setJurisdictionVersionNumber()](#setjurisdictionversionnumber) | Jurisdiction Version Number 00-99 |
| [setMandatoryElements()](#setmandatoryelements) | Mandatory elements (fields) of the card |
| [setNumberOfEntries()](#setnumberofentries) | Number 00-99 of subfiles |
| [setOptionalElements()](#setoptionalelements) | Optional elements (fields) of the card |
| [setSubfileDesignator()](#setsubfiledesignator) | Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length w |

### addSubfileDesignator() {#addsubfiledesignator}

Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length will be set automatically.

### getAAMVAVersionNumber() {#getaamvaversionnumber}

AAMVA Version Number 00-99

### getBarcodeType() {#getbarcodetype}

Returns barcode type of USA DL (Pdf417)

**Returns:** Barcode type (Pdf417)

### getConstructedCodetext() {#getconstructedcodetext}

Construct codetext from USA DL data

**Returns:** Constructed codetext

### getIssuerIdentificationNumber() {#getissueridentificationnumber}

This number uniquely identifies the issuing jurisdiction and can be obtained by contacting the ISO Issuing Authority(AAMVA). The full 6-digit IIN should be encoded.

### getJurisdictionSpecificSubfile() {#getjurisdictionspecificsubfile}

Jurisdiction Specific Fields

### getJurisdictionVersionNumber() {#getjurisdictionversionnumber}

Jurisdiction Version Number 00-99

### getMandatoryElements() {#getmandatoryelements}

Mandatory elements (fields) of the card

### getNumberOfEntries() {#getnumberofentries}

Number 00-99 of subfiles

### getOptionalElements() {#getoptionalelements}

Optional elements (fields) of the card

### getSubfileDesignator() {#getsubfiledesignator}

Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length will be set automatically.

### initFromString(constructedCodetext) {#initfromstring}

Initialize USA DL object from codetext

| Parameter | Description |
| --- | --- |
| constructedCodetext | Constructed codetext |

### setAAMVAVersionNumber() {#setaamvaversionnumber}

AAMVA Version Number 00-99

### setIssuerIdentificationNumber() {#setissueridentificationnumber}

This number uniquely identifies the issuing jurisdiction and can be obtained by contacting the ISO Issuing Authority(AAMVA). The full 6-digit IIN should be encoded.

### setJurisdictionSpecificSubfile() {#setjurisdictionspecificsubfile}

Jurisdiction Specific Fields

### setJurisdictionVersionNumber() {#setjurisdictionversionnumber}

Jurisdiction Version Number 00-99

### setMandatoryElements() {#setmandatoryelements}

Mandatory elements (fields) of the card

### setNumberOfEntries() {#setnumberofentries}

Number 00-99 of subfiles

### setOptionalElements() {#setoptionalelements}

Optional elements (fields) of the card

### setSubfileDesignator() {#setsubfiledesignator}

Contains information about following subfiles, types, offsets and lengths. Important: set only type, offset and length will be set automatically.
