Skip to content

@capgo/capacitor-pdf-generator

Create PDF documents from HTML templates for invoices, reports, and receipts

Create PDF documents from HTML templates for invoices, reports, and receipts

Start with fromURL() and the other core methods listed below.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebNoGuard with Capacitor.getPlatform()
  • fromURL - Generates a PDF from the provided URL.
  • fromData - Generates a PDF from a raw HTML string.
MethodDescription
fromURLGenerates a PDF from the provided URL.
fromDataGenerates a PDF from a raw HTML string.
getPluginVersionGet the native Capacitor plugin version.

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.