How pdf4j/icepdf works
Project type and purpose
• This is a Maven multi-module Java project (“PDF4J ICEPDF”) that provides:
• A pure-Java PDF parsing and rendering engine (core)
• A Java print API and command-line tool (print)
• A Swing-based desktop viewer (viewer + viewerapp)
• A JSF-based web viewer (webviewer)
• Example client code (examples)
• Its goal is to let you embed PDF viewing, rendering, printing in Java applications or web apps.
File structure
Top-level modules (each with its own pom.xml):
• core
– Packages under org.icepdf.core: parser (io, util, pobjects), rendering (graphics, filters, fonts), event system, security, search
– Third-party JBIG2 decoder under org.jpedal.jbig2 (optional GPL profile)
– Simple POJOs (PrintHelper, PrinterTask, PrintJobWatcher) that call core + Java Print Service
• viewer
– Swing MVC layers: controllers, view builders, view models, tools, annotation subsystems, utilities, resource bundles
• viewerapp
– Assembly module: shades viewer + core + dependencies into one self-contained JAR
• webviewer
– JSF 2.x application: Faces servlet, PdfResourceHandler, PdfRenderer servlet, managed beans (DocumentCache, DocumentManager), Facelets templates (XHTML), static resources
• examples
– Demo code for annotations, applets, extraction, print, search, signatures
README for additional insights
• Confirms module responsibilities, Maven GPL vs ASL profiles, how to build/run each module, published Maven artifacts, and licensing.