Compatibility

Compose Compatibility

compose2pdf is built against the latest stable Compose Multiplatform release, and supports the previous stable minor and the next unreleased minor (its newest pre-release). All of them are tested weekly on macOS and Linux with the one published binary.


Compose Multiplatform versions

| Compose Multiplatform | Kotlin | Status | |:———————-|:——-|:——-| | 1.13.0-beta02 | 2.4.0 | CI tested | | 1.12.2 | 2.4.0 | CI tested (current) | | 1.11.1 | 2.4.0 | CI tested |

This table is generated from .github/compose-versions.json and updated weekly by the update-compose-versions workflow, which applies that policy (previous stable + latest stable + next pre-release) and re-pins the build to the latest stable; CI then runs the published binary and the full unit suite against each. The current row is the version the library itself pins. Edit compose-versions.json, not this table.


JDK versions

JDK Status
17 (Temurin) CI tested
21+ Supported

JDK 17 is the minimum — enforced by jvmToolchain(17) in the build. Later JDK versions are expected to work.


Platform support

Platform Status Notes
macOS (arm64, x64) CI tested Full support
Linux (x64) CI tested Requires xvfb-run for headless Compose rendering
Windows (x64) Supported Not CI tested, but Compose Desktop and PDFBox both support Windows

compose2pdf targets Compose Desktop (JVM). Android, iOS, and Compose for Web are not supported.


Dependencies

Dependency Version Purpose
Kotlin 2.3.20 Language
Compose Multiplatform 1.9+ UI framework
Apache PDFBox 3.0.7 PDF generation
Kotlinx Coroutines 1.10.2 Compose runtime dependency

How compatibility is tested

The compatibility workflow runs on every push to main, every PR, and weekly on Monday at 9am UTC.

It dynamically loads Compose Multiplatform versions from .github/compose-versions.json, overrides the library’s pinned version, and runs the full build for each combination.

The update-compose-versions workflow automatically discovers new CMP releases weekly and updates the test matrix.


See also