android-pdf-export/SKILL.md
Native Android PDF export system using PdfDocument API (zero dependencies). Reusable Canvas-based generator with branded letterheads, data tables, summary cards, and share-via-Intent. Use when adding PDF export to any Android app screen —...
npx skillsauth add peterbamuhigire/skills-web-dev android-pdf-exportInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
android-pdf-export or would be better handled by a more specific companion skill.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.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.
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 feature module):
SalesReportPdfExporter.kt — Sales reports + invoice list
InventoryPdfExporter.kt — Stock levels, PO/transfer/adjustment details + lists
NetworkPdfExporter.kt — Distributor list/detail, genealogy
Extended guidance for android-pdf-export was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
DependenciesStep 1: FileProvider SetupStep 2: PdfExportHelperStep 3: Core PDF GeneratorStep 4: Per-Module ExportersStep 5: PdfExportButton ComponentStep 6: Screen IntegrationStep 7: String ResourcesStep 8: Franchise Info for LetterheadsPDF Design Specificationdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...