Commit 95f6ae0
authored
docs(examples): add a single-slide "Available on Maven Central" banner rendered to PPTX (#432)
* docs(examples): add a single-slide Maven Central banner rendered to PPTX
MavenBannerPptxExample composes an "Available on Maven Central" brand
banner — wordmark, Maven coordinate card, capability tags and a
code -> layout -> PDF/PPTX diagram — as one full-bleed CanvasLayerNode on
a 960x540 slide, then emits it through the fixed-layout PPTX backend via
DocumentSession.buildPptx(). The canvas containers use OVERFLOW_VISIBLE so
the panels render as native, editable PowerPoint shapes and text rather
than rasterised pictures. A vector PDF copy and a PNG preview reuse the
same composition.
* docs(examples): branch the banner flow into both output backends
The layout box now feeds a vertical distribution bus that forks into the
PDF icon (top) and the PPTX icon (bottom), each landing with an arrowhead,
so the code -> layout -> output flow visibly terminates at both backends
instead of stopping at a short shared stub.
* test(examples): guard the Maven banner's native-PPTX output and register it
Adds MavenBannerNativeShapeTest, which builds the banner through the fixed
PPTX backend and asserts the slide stays native shapes and text except the
single rasterised SVG checkmark — pinning the "editable in PowerPoint"
promise the way TwinOutputNativeShapeTest pins the twin-output slide.
Registers MavenBannerPptxExample in GenerateAllExamples so the showcase
smoke test exercises it end-to-end. Also sources the 960x540 canvas from
DocumentPageSize.SLIDE_16_9, adds @SInCE 2.1.0, gives each arrowhead a
unique node name, and corrects the class Javadoc to read PDF/PPTX.
* docs(examples): list the Maven banner in the gallery with PDF/PPTX previews
Adds the flagship gallery row in examples/README.md and commits the rendered
maven-banner.pdf and maven-banner.pptx under assets/readme/examples/ so the
row's PDF/PPTX links resolve, matching the Twin Output treatment.
* docs(changelog): note the Maven Central banner example under v2.1.0
Adds a v2.1.0 Documentation entry for MavenBannerPptxExample — the
single-slide "Available on Maven Central" banner rendered to PPTX, its
GenerateAllExamples registration, gallery previews and native-shape guard.1 parent 9b694c7 commit 95f6ae0
7 files changed
Lines changed: 575 additions & 0 deletions
File tree
- assets/readme/examples
- examples
- src
- main/java/com/demcha/examples
- flagships
- test/java/com/demcha/examples/flagships
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments