npm package: @gunadi94/iminprinter
Description: -
Author: gunadi94
Latest version: 0.0.13

# iminprinter

-

## Install

```bash
npm install iminprinter
npx cap sync
```

## API

<docgen-index>

* [`initPrinter()`](#initprinter)
* [`printAndLineFeed()`](#printandlinefeed)
* [`printAndFeedPaper(...)`](#printandfeedpaper)
* [`setAlignment(...)`](#setalignment)
* [`setTextSize(...)`](#settextsize)
* [`setTextTypeface(...)`](#settexttypeface)
* [`setTextStyle(...)`](#settextstyle)
* [`setTextLineSpacing(...)`](#settextlinespacing)
* [`setTextWidth(...)`](#settextwidth)
* [`printText(...)`](#printtext)
* [`printTextWithAlignment(...)`](#printtextwithalignment)
* [`printAntiWhiteText(...)`](#printantiwhitetext)
* [`printColumnsText(...)`](#printcolumnstext)
* [`setQrCodeSize(...)`](#setqrcodesize)
* [`setQrCodeErrorCorrectionLev(...)`](#setqrcodeerrorcorrectionlev)
* [`setLeftMargin(...)`](#setleftmargin)
* [`printQrCode(...)`](#printqrcode)
* [`printQrCodeAndAlignment(...)`](#printqrcodeandalignment)
* [`printSingleBitmap(...)`](#printsinglebitmap)
* [`printSingleBitmapAndAlignment(...)`](#printsinglebitmapandalignment)
* [`printSingleBitmapBlackWhite(...)`](#printsinglebitmapblackwhite)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### initPrinter()

```typescript
initPrinter() => Promise<{ status: string; }>
```

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printAndLineFeed()

```typescript
printAndLineFeed() => Promise<{ status: string; }>
```

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printAndFeedPaper(...)

```typescript
printAndFeedPaper(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setAlignment(...)

```typescript
setAlignment(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setTextSize(...)

```typescript
setTextSize(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setTextTypeface(...)

```typescript
setTextTypeface(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setTextStyle(...)

```typescript
setTextStyle(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setTextLineSpacing(...)

```typescript
setTextLineSpacing(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setTextWidth(...)

```typescript
setTextWidth(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printText(...)

```typescript
printText(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printTextWithAlignment(...)

```typescript
printTextWithAlignment(options: { value: string; alignment: number; }) => Promise<{ status: string; }>
```

| Param         | Type                                               |
| ------------- | -------------------------------------------------- |
| **`options`** | <code>{ value: string; alignment: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printAntiWhiteText(...)

```typescript
printAntiWhiteText(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printColumnsText(...)

```typescript
printColumnsText(options: { texts: string[]; widths: number[]; alignments: number[]; fontSizes: number[]; }) => Promise<{ status: string; }>
```

| Param         | Type                                                                                           |
| ------------- | ---------------------------------------------------------------------------------------------- |
| **`options`** | <code>{ texts: string[]; widths: number[]; alignments: number[]; fontSizes: number[]; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setQrCodeSize(...)

```typescript
setQrCodeSize(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setQrCodeErrorCorrectionLev(...)

```typescript
setQrCodeErrorCorrectionLev(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### setLeftMargin(...)

```typescript
setLeftMargin(options: { value: number; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printQrCode(...)

```typescript
printQrCode(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printQrCodeAndAlignment(...)

```typescript
printQrCodeAndAlignment(options: { value: string; alignment: number; }) => Promise<{ status: string; }>
```

| Param         | Type                                               |
| ------------- | -------------------------------------------------- |
| **`options`** | <code>{ value: string; alignment: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printSingleBitmap(...)

```typescript
printSingleBitmap(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printSingleBitmapAndAlignment(...)

```typescript
printSingleBitmapAndAlignment(options: { value: string; alignment: number; }) => Promise<{ status: string; }>
```

| Param         | Type                                               |
| ------------- | -------------------------------------------------- |
| **`options`** | <code>{ value: string; alignment: number; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------


### printSingleBitmapBlackWhite(...)

```typescript
printSingleBitmapBlackWhite(options: { value: string; }) => Promise<{ status: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ status: string; }&gt;</code>

--------------------

</docgen-api>