0.0.10 • Published 1 year ago
capacitor-pdf-printer
This plugin is all about printing. And Capacitor. And for some reason TSC printers model TE210 as well.
Install
npm install capacitor-pdf-printer
npx cap sync
API
print(...)
print(call: Props) => Promise<{}>
Returns: Promise<{}>
printPdf(...)
printPdf(call: PrintPdfByFile) => Promise<{}>
Param | Type |
---|
call | PrintPdfByFile |
Returns: Promise<{}>
printPdfWithSetup(...)
printPdfWithSetup(call: PrintWithSetup) => Promise<{}>
Param | Type |
---|
call | PrintWithSetup |
Returns: Promise<{}>
Interfaces
Props
Prop | Type |
---|
uri | string |
port | number |
IPAddress | string |
PrintPdfByFile
Prop | Type |
---|
base64String | string |
port | number |
IPAddress | string |
offsetX | number |
offsetY | number |
dpi | number |
PrintWithSetup
Prop | Type |
---|
width | number |
height | number |