@capgo/capacitor-pdf-generator
Overview
Section titled “Overview”Create PDF documents from HTML templates for invoices, reports, and receipts
Start with fromURL() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
Core Capabilities
Section titled “Core Capabilities”fromURL- Generates a PDF from the provided URL.fromData- Generates a PDF from a raw HTML string.
Public API
Section titled “Public API”| Method | Description |
|---|---|
fromURL | Generates a PDF from the provided URL. |
fromData | Generates a PDF from a raw HTML string. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-pdf-generator.
Keep going from @capgo/capacitor-pdf-generator
Section titled “Keep going from @capgo/capacitor-pdf-generator”If you are using @capgo/capacitor-pdf-generator to plan storage and file handling, connect it with Using @capgo/capacitor-pdf-generator for the native capability in Using @capgo/capacitor-pdf-generator, @capgo/capacitor-data-storage-sqlite for the implementation detail in @capgo/capacitor-data-storage-sqlite, Using @capgo/capacitor-data-storage-sqlite for the native capability in Using @capgo/capacitor-data-storage-sqlite, @capgo/capacitor-file for the implementation detail in @capgo/capacitor-file, and Using @capgo/capacitor-file for the native capability in Using @capgo/capacitor-file.