Boxed Sections

Each section wrapped in a grey banner header — bold, structured feel.

2 pages

Boxed Sections, page 1 of 2 (opens the PDF)
Page 1 of 2
Boxed Sections, page 2 of 2 (opens the PDF)
Page 2 of 2

Use this template

Maven
<dependency>
  <groupId>io.github.demchaav</groupId>
  <artifactId>graph-compose-bundle</artifactId>
  <version>2.4.1</version>
</dependency>
Gradle
implementation 'io.github.demchaav:graph-compose-bundle:2.4.1'

Why the aggregate this document is drawn in a bundled font, and those ship separately from the engine; the aggregate carries them along with the PDF backend and the templates, in one coordinate

Java 17 or newer

Preset com.demcha.compose.document.templates.cv.presets.BoxedSections

Data model com.demcha.compose.document.templates.cv.data.CvDocument

Compose it
CvIdentity identity = CvIdentity.builder()
        .name("Jane", "Doe")
        .jobTitle("Backend Engineer")
        .contact("+44 20 7946 0958", "jane.doe@example.com", "London, UK")
        .build();

CvDocument cv = CvDocument.ofMainSections(identity, List.of(
        new ParagraphSection("Profile", "Ten years building document pipelines.")));

BrandTheme theme = BrandTheme.boxedClassic();          // optional override
DocumentTemplate<CvDocument> template = BoxedSections.create(theme);

try (DocumentSession document = GraphCompose.document(Path.of("cv.pdf")).create()) {
    template.compose(document, cv);
    document.buildPdf();
}
Run the example
./mvnw -f examples/pom.xml exec:java -Dexec.mainClass=com.demcha.examples.templates.cv.v2.CvBoxedV2Example

Writes examples/target/generated-pdfs/templates/cv/cv-boxed-sections-v2.pdf