compose-pdf

A pure-Kotlin Kotlin Multiplatform library that generates vector PDFs — identical across devices, with selectable/searchable text, small files, automatic pagination, and a Compose-style DSL. No platform text engine, no bundled font.

Coordinates: io.github.rikoappdev:compose-pdf · Targets Android · iOS · JVM · Apache-2.0

Type0 / Identity-H · selectable text Automatic pagination Tables · boxes · rows JPEG + PNG images SVG + VectorDrawable import Deterministic output
GitHub repo Maven Central Docs

Gallery

Real PDFs rendered by the engine from the example builders in ExampleDocuments.kt. Every card links its source code → the exported PDF (the preview opens the PDF). All data is invented, generic placeholder content (Contoso / Northwind / Fabrikam).