capacitor-pdf-printer
v0.0.10
Published
This plugin is all about printing. And Capacitor. And for some reason TSC printers model TE210 as well. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Softw
Downloads
1
Readme
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<{}>
| Param | Type |
| ---------- | --------------------------------------- |
| call
| Props |
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 |