android-pdf-exportlisted
Install: claude install-skill peterbamuhigire/skills-web-dev
## Required Plugins
**Superpowers plugin:** MUST be active for all work using this skill. Use throughout the entire build pipeline — design decisions, code generation, debugging, quality checks, and any task where it offers enhanced capabilities. If superpowers provides a better way to accomplish something, prefer it over the default approach.
# Android PDF Export (Native PdfDocument)
Generate professional branded PDF documents from any Android screen using the built-in `android.graphics.pdf.PdfDocument` API. Zero external dependencies — pure Canvas drawing. Supports A4 portrait/landscape, multi-page pagination, letterheads, tables, summary cards, info sections, status badges, and charts.
## Overview
**Library choice:** Native `android.graphics.pdf.PdfDocument` (0 KB added to APK). Alternatives like iText (AGPL license), PDFBox-Android (stale since 2023), and OpenPDF (requires java.awt hack) were rejected.
**Architecture:** A core `DmsPdfGenerator` object provides reusable drawing primitives. Per-module exporters (Sales, Inventory, Network) compose these primitives for each screen. `PdfExportHelper` handles file I/O and sharing via `FileProvider`.
```
core/pdf/
DmsPdfGenerator.kt — Reusable drawing primitives (letterhead, tables, cards, footer)
PdfExportHelper.kt — Save to cache + share via FileProvider Intent
core/ui/components/
PdfExportButton.kt — Reusable TopAppBar button (icon + "PDF" label)
Per-module exporters (one object per fe