@capgo/capacitor-printer 8.1.4 → 8.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
# @capgo/capacitor-printer
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Print documents, HTML, PDFs, images and the current web view from your Capacitor app with the native print dialogs on iOS and Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_printer"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-printer" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_printer">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_printer">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-printer/main/assets/github-social-preview.png" alt="@capgo/capacitor-printer for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **HTML**: `printHtml()` prints an HTML string.
|
|
21
|
+
- **PDF and files**: `printPdf()`, `printFile()` and `printBase64()` for device files and base64 data.
|
|
22
|
+
- **Web content**: `printWebView()` prints the current page and `printIframe()` prints an iframe.
|
|
23
|
+
- **Native dialogs**: `UIPrintInteractionController` on iOS and the Android print framework.
|
|
24
|
+
- **Platforms**: iOS, Android and Web. Web uses the browser print dialog.
|
|
10
25
|
|
|
11
26
|
## Why Capacitor Printer?
|
|
12
27
|
|
|
@@ -9,7 +9,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
9
9
|
@CapacitorPlugin(name = "Printer")
|
|
10
10
|
public class PrinterPlugin extends Plugin {
|
|
11
11
|
|
|
12
|
-
private final String pluginVersion = "8.1.
|
|
12
|
+
private final String pluginVersion = "8.1.6";
|
|
13
13
|
|
|
14
14
|
private Printer implementation;
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@ import Capacitor
|
|
|
3
3
|
|
|
4
4
|
@objc(PrinterPlugin)
|
|
5
5
|
public class PrinterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let pluginVersion: String = "8.1.
|
|
6
|
+
private let pluginVersion: String = "8.1.6"
|
|
7
7
|
public let identifier = "PrinterPlugin"
|
|
8
8
|
public let jsName = "Printer"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED