Skip to content

Commit ed9d9eb

Browse files
committed
feat(examples): a five-slide carousel sized for a LinkedIn document post
Portrait 1080x1350, which is the tallest frame LinkedIn shows without cropping, so the type can be sized for a phone rather than a desktop preview. Five slides: the one-composition premise, what the PPTX backend actually is, the comparative numbers, the guarantees behind them, and how to depend on it. Figures are read at render time - the version line from the filtered banner.properties, the comparative timings from the committed benchmark snapshot - so the file does not need remembering on the next release. The coordinate slide deliberately does not print the reactor version: this renders from a -SNAPSHOT tree, and publishing that string would advertise a coordinate that is not on Central. Two engine details the layout needed. A section measures to its longest line, so a stack of cards renders with ragged right edges; a zero-height spacer sets the width floor and they line up. Leading whitespace is trimmed during inline layout, so the code sample indents with non-breaking spaces, which occupy the same advance in a monospaced face. The same composition also writes a PPTX, which is what keeps slide two's claim about identical geometry honest whenever this file changes.
1 parent af6673b commit ed9d9eb

2 files changed

Lines changed: 501 additions & 0 deletions

File tree

examples/src/main/java/com/demcha/examples/GenerateAllExamples.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import com.demcha.examples.flagships.FinancialReportPptxExample;
5353
import com.demcha.examples.flagships.MasterShowcaseExample;
5454
import com.demcha.examples.flagships.MasterShowcasePptxExample;
55+
import com.demcha.examples.flagships.LinkedInCarouselExample;
5556
import com.demcha.examples.flagships.SocialCardExample;
5657
import com.demcha.examples.flagships.MavenBannerPptxExample;
5758
import com.demcha.examples.flagships.ModuleFirstFileExample;
@@ -225,6 +226,8 @@ public static void main(String[] args) throws Exception {
225226
System.out.println("Generated: " + MavenBannerPptxExample.generate());
226227
System.out.println("Generated: " + SocialCardExample.generate());
227228
System.out.println("Generated: " + SocialCardExample.generatePptx());
229+
System.out.println("Generated: " + LinkedInCarouselExample.generate());
230+
System.out.println("Generated: " + LinkedInCarouselExample.generatePptx());
228231
System.out.println("Generated: " + TwinOutputExample.generate());
229232
System.out.println("Generated: " + FinancialReportExample.generate());
230233
System.out.println("Generated: " + FinancialReportPptxExample.generate());

0 commit comments

Comments
 (0)