Repository navigation
Building From Source
Patrick Corless edited this page Nov 3, 2026
·
6 revisions
The icepdf jars are on Maven Central (com.github.pcorless.icepdf), so you only need to build icepdf to work on it,
to run the examples, or to make the distribution bundle. Both Gradle and Maven builds are maintained.
- JDK 17 or later. Gradle toolchains compile core and the Swing viewer for Java 11 and the JavaFX viewer for Java 17.
- Git, to clone the repository. The Gradle wrapper (
./gradlew) is included; Maven needs a local install.
| Folder | Artifact | What it is |
|---|---|---|
core/core-awt |
icepdf-core |
The PDF engine: parsing, rendering, text, annotations, forms, redaction, signing |
core/core-fonts |
icepdf-fonts |
Optional fonts used when writing annotation and signature appearances |
viewer/viewer-awt |
icepdf-viewer |
The Swing viewer reference implementation |
viewer/viewer-fx |
icepdf-viewer-fx |
The JavaFX viewer: the embeddable PdfView control and the reference viewer |
examples/* |
(not published) | Small applications, one feature each; see Usage Examples |
# core jar
~$ ./gradlew :core:core-awt:assemble
# the viewers
~$ ./gradlew :viewer:viewer-awt:assemble
~$ ./gradlew :viewer:viewer-fx:assemble
# run a viewer from the source tree
~$ ./gradlew :viewer:viewer-fx:run
~$ ./gradlew :viewer:viewer-awt:run
# run an example
~$ ./gradlew :examples:annotation:creation:run
# tests (filter with --tests)
~$ ./gradlew :core:core-awt:test
# the distribution bundle (jars, sources, licences, readme)
~$ ./gradlew osDistZip
The bundle is written to build/distributions/icepdf-<version>.zip.
On Linux, packaging/linux/install-desktop.sh installs a desktop entry and launcher for the JavaFX viewer
after ./gradlew :viewer:viewer-fx:launcherLibs, or for the Swing viewer with --swing.
# core
~$ mvn -pl :icepdf-core package
# a viewer, with the modules it depends on (-am)
~$ mvn -pl :icepdf-viewer -am package
~$ mvn -pl :icepdf-viewer-fx -am package
# an example, by artifactId or groupId:artifactId
~$ mvn -pl :png-capture -am package
~$ mvn -pl org.icepdf.examples:png-capture -am package
# everything
~$ mvn package
When you work on icepdf and an application at the same time, install the jars you've changed:
~$ mvn -pl :icepdf-core install
~$ mvn -pl :icepdf-viewer -am install
The version is set in the root pom.xml (and gradle.properties for Gradle).
Project site · Javadoc · Releases · Discussions · Issues
Start
Use the library
Viewers
Configure and tune
Project