# capacitor-pdf-printer

This plugin is all about printing. And Capacitor. And for some reason TSC printers model TE210 as well.

## Install

```bash
npm install capacitor-pdf-printer
npx cap sync
```

## API

<docgen-index>

* [`print(...)`](#print)
* [`printPdf(...)`](#printpdf)
* [`printPdfWithSetup(...)`](#printpdfwithsetup)
* [Interfaces](#interfaces)

</docgen-index>

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

### print(...)

```typescript
print(call: Props) => Promise<{}>
```

| Param      | Type                                    |
| ---------- | --------------------------------------- |
| **`call`** | <code><a href="#props">Props</a></code> |

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

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


### printPdf(...)

```typescript
printPdf(call: PrintPdfByFile) => Promise<{}>
```

| Param      | Type                                                      |
| ---------- | --------------------------------------------------------- |
| **`call`** | <code><a href="#printpdfbyfile">PrintPdfByFile</a></code> |

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

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


### printPdfWithSetup(...)

```typescript
printPdfWithSetup(call: PrintWithSetup) => Promise<{}>
```

| Param      | Type                                                      |
| ---------- | --------------------------------------------------------- |
| **`call`** | <code><a href="#printwithsetup">PrintWithSetup</a></code> |

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

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


### Interfaces


#### Props

| Prop            | Type                |
| --------------- | ------------------- |
| **`uri`**       | <code>string</code> |
| **`port`**      | <code>number</code> |
| **`IPAddress`** | <code>string</code> |


#### PrintPdfByFile

| Prop               | Type                |
| ------------------ | ------------------- |
| **`base64String`** | <code>string</code> |
| **`port`**         | <code>number</code> |
| **`IPAddress`**    | <code>string</code> |
| **`offsetX`**      | <code>number</code> |
| **`offsetY`**      | <code>number</code> |
| **`dpi`**          | <code>number</code> |


#### PrintWithSetup

| Prop         | Type                |
| ------------ | ------------------- |
| **`width`**  | <code>number</code> |
| **`height`** | <code>number</code> |

</docgen-api>
